Uploaded image for project: 'Archive of Our Own'
  1. AO3-5069

Posting a new work with a series when running into a validation error (e.g. forgetting to check a warning) results in a 500 error

    Details

    • Type: Bug
    • Status: Deployed
    • Priority: Medium
    • Resolution: DeployedToBeta
    • Affects Version/s: 0.9.197
    • Fix Version/s: 0.9.198
    • Milestone:
      Internal 0.9
    • Difficulty:
      Medium
    • Roadmap:
      Series, Work
    • Components:
      BackEnd

      Description

      Steps to reproduce
      1. Log in
      2. Post > New Work
      3. Fill in all required information EXCEPT a warning
      4. Check "This work is part of a series"
      5. Choose an existing series or fill in a name for a new one
      6. Preview or Post Without Preview

      What happens
      A 500 error

      What should happen
      I should be redirected to the edit form with a flash message telling me I forgot to fill in a warning (or whatever else I did to make the work fail validation)

      Notes
      Elz [23:32]
      so that problem is that the code assumes that if you have serial works, they've actually been saved and have an id

      [23:32]
      which is not the case if you've hit a validation error and the work hasn't saved yet

        Attachments

          Activity

            People

            • Assignee:
              cresenne cresenne
              Reporter:
              sarken sarken
            • Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: