avo
avo copied to clipboard
Avo crashes if the validator fails and the user attached a file
Describe the bug
It only happens sometimes.
Steps to Reproduce and brake
Steps to reproduce the behavior:
- Go to projects
- click on create project
- click attach a file and don't fill in any fields
- click on submit and see it crash
Fails with
No route matches {:action=>"show", :controller=>"avo/projects", :id=>#<Project id: nil, name: "", status: nil, stage: "Discovery", budget: nil, country: "", users_required: nil, started_at: nil, meta: nil, created_at: nil, updated_at: nil, description: "", progress: 50>}, possible unmatched constraints: [:id]
Did you mean? resources_project_url
resources_projects_url
resources_projects_path
new_resources_project_url
Steps to Reproduce and succeed
Steps to reproduce the behavior:
- Go to a user
- click create new user
- select a file to upload and don't fill any other fields
- click submit
- observe it's not crashing
Details
System configuration
Avo version: 2.11
Rails version:
Ruby version:
Additional context
Impact
- [ ] High impact
- [ ] Medium impact
- [x] Low impact