Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Account settings page inaccessible for accounts with '@' symbols #346

Closed
jvendetti opened this issue Nov 11, 2024 · 0 comments
Closed

Account settings page inaccessible for accounts with '@' symbols #346

jvendetti opened this issue Nov 11, 2024 · 0 comments
Assignees
Labels

Comments

@jvendetti
Copy link
Member

From the support list:

When I want to access my account setting to find the API key generated for me, It showed this:
at this URL: https://bioportal.bioontology.org/account
"We're sorry but something has gone wrong. We have been notified of this error."

To reproduce, log into BioPortal using an account name with an '@' symbol and navigate to the Account settings page.

Stack trace from local dev environment:

13:42:53 web.1  | Started GET "/account" for ::1 at 2024-11-11 13:42:53 -0800
13:42:53 web.1  | Processing by HomeController#account as HTML
13:43:03 web.1  |   Rendering layout layouts/ontology.html.erb
13:43:03 web.1  |   Rendering users/show.html.haml within layouts/ontology
13:43:03 web.1  |   Rendered users/show.html.haml within layouts/ontology (Duration: 13.0ms | Allocations: 20805)
13:43:03 web.1  |   Rendered layout layouts/ontology.html.erb (Duration: 13.1ms | Allocations: 20897)
13:43:03 web.1  | Completed 500 Internal Server Error in 9701ms (ActiveRecord: 0.0ms | Allocations: 605765)
13:43:03 web.1  | 
13:43:03 web.1  | 
13:43:03 web.1  |   
13:43:03 web.1  | ActionView::Template::Error (No route matches {:action=>"edit", :controller=>"users", :id=>"ankifortoddler@gmail.com"}, possible unmatched constraints: [:id]
13:43:03 web.1  | Did you mean?  edit_user_url):
13:43:03 web.1  |     23:       %td= @user.orcidId
13:43:03 web.1  |     24: 
13:43:03 web.1  |     25:   %div{class: 'd-flex justify-content-end'}
13:43:03 web.1  |     26:     = link_to('Edit account', edit_user_path(@user.username), class: 'btn btn-sm btn-outline-secondary')
13:43:03 web.1  |     27:     = link_to('Change password', edit_password_path, class: 'btn btn-sm btn-outline-secondary ms-2')
13:43:03 web.1  |     28: 
13:43:03 web.1  |     29:   -# User's API key
13:43:03 web.1  |   
13:43:03 web.1  | app/views/users/show.html.haml:26
13:43:03 web.1  | app/controllers/home_controller.rb:120:in `account'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant