Issue Details (XML | Word | Printable)

Key: CODEBASE-135
Type: Bug Bug
Status: Resolved Resolved
Resolution: Fixed
Priority: Major Major
Assignee: Matt Mitchell
Reporter: Jason Ronallo
Votes: 0
Watchers: 0
Operations

If you were logged in you would be able to see more operations.
Blacklight Plugin

Fall back on net_http when curb gem is not present

Created: 01/Jun/09 04:09 PM   Updated: 01/Oct/09 04:31 PM
Component/s: None
Affects Version/s: None
Fix Version/s: 2.4


 Description  « Hide
Blacklight is currently not falling back properly on net_http when curb is not present. If the curb gem is not installed then Blacklight fails to start. Even though the code called within a begin block with a rescue block, it still fails to start with script/server.

In vendor/plugins/blacklight/lib/blacklight.rb I monkey patched the following code to work around this:

begin
      #require 'curb'
      #Blacklight.solr.adapter.connector.adapter_name = :curb
      Blacklight.solr.adapter.connector.adapter_name = :net_http
rescue
      # sticking with Net::HTTP
end

 All   Comments   Change History      Sort Order: Ascending order - Click to sort in descending order
Naomi Dushay added a comment - 25/Sep/09 12:34 PM
Is this done already?

Matt Mitchell added a comment - 01/Oct/09 04:30 PM
Curb is used now ONLY if it's installed. Otherwise net::http is used. No errors are thrown and curb is no longer dependency.