ncbo / bioportal_web_ui

A Rails application for biological ontologies
http://bioportal.bioontology.org/
Other
21 stars 2 forks source link

Ontology deletion from Administration Console fails with 500 error #287

Closed jvendetti closed 10 months ago

jvendetti commented 10 months ago

Steps to reproduce:

The page displays a 500 Internal Server Error message at the top. Error from local dev environment:

Started DELETE "/admin/ontologies" for 127.0.0.1 at 2023-09-21 10:36:34 -0700
Processing by AdminController#delete_ontologies as JSON
  Parameters: {"ontologies"=>"JVTESTONT2"}
Completed 500 Internal Server Error in 339ms (ActiveRecord: 0.0ms | Allocations: 308781)

FrozenError (can't modify frozen String: ""):

app/controllers/admin_controller.rb:287:in `rescue in block in _process_ontologies'
app/controllers/admin_controller.rb:272:in `block in _process_ontologies'
app/controllers/admin_controller.rb:271:in `each'
app/controllers/admin_controller.rb:271:in `_process_ontologies'
app/controllers/admin_controller.rb:171:in `delete_ontologies'