Skip to content

Updating an record with invalid associations results in empty body #1000

Description

@robbevp

See #999 for a failing test that show this issue

Reproduction steps

In web

  1. Go to edit page of track
  2. Add the same track artist (with the same role) twice
  3. Submit form
  4. Rails throws an ActiveRecord::RecordNotFound error. In production this causes an empty body, in development we get the error from rails
Expected behaviour

We should:

  • Handle this with errors in the format we expect
  • Give the user detailed information about the failing record
System information

Happing in version v0.24.0 (and probably before that as well

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions