ncbo / ontologies_api

Hypermedia API for NCBO's ontology-related projects
http://data.bioontology.org
Other
25 stars 10 forks source link

/download enpoint errors out when a download is requested of non-existing ontology acronym #97

Closed alexskr closed 1 year ago

alexskr commented 2 years ago

/download endpoint throws a 500 error when a download of a deleted or non-existing ontology is requested

2022-08-26 09:05:32 - NoMethodError - undefined method `bring?' for nil:NilClass:
    /srv/ncbo/ontologies_api/releases/20220811020542/controllers/ontology_submissions_controller.rb:96:in `block (2 levels) in <class:OntologySubmissionsController>'
    /srv/ncbo/ontologies_api/shared/bundle/ruby/2.7.0/gems/sinatra-1.4.8/lib/sinatra/base.rb:1611:in `call'
    /srv/ncbo/ontologies_api/shared/bundle/ruby/2.7.0/gems/sinatra-1.4.8/lib/sinatra/base.rb:1611:in `block in compile!'
    /srv/ncbo/ontologies_api/shared/bundle/ruby/2.7.0/gems/sinatra-1.4.8/lib/sinatra/base.rb:975:in `block (3 levels) in route!'
    /srv/ncbo/ontologies_api/shared/bundle/ruby/2.7.0/gems/sinatra-1.4.8/lib/sinatra/base.rb:994:in `route_eval'