avo icon indicating copy to clipboard operation
avo copied to clipboard

Avo crashes if the validator fails and the user attached a file

Open adrianthedev opened this issue 2 years ago • 0 comments

Describe the bug

It only happens sometimes.

Steps to Reproduce and brake

Steps to reproduce the behavior:

  1. Go to projects
  2. click on create project
  3. click attach a file and don't fill in any fields
  4. 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

CleanShot 2022-08-01 at 22 41 17

CleanShot 2022-08-01 at 22 42 14

Steps to Reproduce and succeed

Steps to reproduce the behavior:

  1. Go to a user
  2. click create new user
  3. select a file to upload and don't fill any other fields
  4. click submit
  5. observe it's not crashing
Details

CleanShot 2022-08-01 at 22 42 44

System configuration

Avo version: 2.11

Rails version:

Ruby version:

Additional context

Impact

  • [ ] High impact
  • [ ] Medium impact
  • [x] Low impact

adrianthedev avatar Aug 01 '22 19:08 adrianthedev