ncbo / bioportal_web_ui

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

Subscribing to notes emails fails for users with '@' symbols in the username #300

Closed jvendetti closed 7 months ago

jvendetti commented 7 months ago

Steps to reproduce:

User is presented with "Problem subscribing to emails, please try again" error message.

Underlying stack trace:

Processing by SubscriptionsController#create as JSON
  Parameters: {"user_id"=>"https://stagedata.bioontology.org/users/jvendetti@yahoo.com", "ontology_id"=>"HRAVS", "subbed"=>"false"}
Completed 500 Internal Server Error in 439676ms (Allocations: 2628555)

Exception (Exception):

app/controllers/subscriptions_controller.rb:7:in `create'

The user_id parameter is coming in unencoded.