ontoportal-lirmm / bioportal_web_ui

A Rails application for ontologies portal.
http://agroportal.lirmm.fr/
Other
5 stars 5 forks source link

Error when submitting a new ontology submission #154

Closed jonquet closed 1 year ago

jonquet commented 1 year ago

Since last release or recently loading a new ontology and th efirst submission returns a "Something went wrong" page, while the ontology file is well loaded and processed.

image

I have reproduced the error on StagePortal and AgroPortal. Tried with a private ontology and public one. Test at 9:55 am on Friday 13th jan 2023
https://stageportal.lirmm.fr/ontologies/MO/ https://agroportal.lirmm.fr/ontologies/MO/ Test on Thursday https://agroportal.lirmm.fr/ontologies/AWS

syphax-bouazzouni commented 1 year ago
ArgumentError (comparison of String with 400 failed):

app/controllers/application_controller.rb:226:in `<'
app/controllers/application_controller.rb:226:in `response_success?'
app/controllers/application_controller.rb:230:in `response_error?'
app/controllers/submissions_controller.rb:46:in `create'
syphax-bouazzouni commented 1 year ago

Fixed with https://github.com/ontoportal-lirmm/bioportal_web_ui/pull/155

image
syphax-bouazzouni commented 1 year ago

But errors message are not well displayed

image
syphax-bouazzouni commented 1 year ago

Fixed with https://github.com/ontoportal-lirmm/bioportal_web_ui/commit/2f76ebd9026dc3c04cefee373222ba36b1a5c4fe

Image