You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
default: 'Your application has been submitted. Thank you!'
redirect_tostudent_dashboard_path
end
create_user tries to create a User, but fails silently, and @current_user ends up remaining nil
ApplicationSubmission.create fails because it requires a user to be valid
create_unavailability ends up calling record.create_unavailability, which raises an exception:
An ActiveRecord::RecordNotSaved occurred in application_submissions#create:
You cannot call create unless the parent is saved
app/controllers/application_submissions_controller.rb:107:in `create_unavailability'
So, in the end, the user got a 500 error and no explanation of what they did wrong.
The text was updated successfully, but these errors were encountered:
Had a user submit an application with the email address of "
theirnetid@umass
" (without theumass.edu
) today which made the user invalid.Here's the controller action:
jobapps/app/controllers/application_submissions_controller.rb
Lines 10 to 25 in 1b7342e
create_user
tries to create aUser
, but fails silently, and@current_user
ends up remainingnil
ApplicationSubmission.create
fails because it requires a user to be validcreate_unavailability
ends up callingrecord.create_unavailability
, which raises an exception:So, in the end, the user got a
500
error and no explanation of what they did wrong.The text was updated successfully, but these errors were encountered: