Skip to content

Invalid assessment config SyntaxError not caught on create #1529

@michellexliu

Description

@michellexliu

Steps To Reproduce
Steps to reproduce the behavior:

  1. Create a lab with a .rb config file that has a syntax error
  2. Create a tarfile of the lab
  3. Click install assessment
  4. Click "browse" under "Import from tarball"
  5. Select the tarfile for the lab

Current behavior
An error page is shown on the deployed version, locally this is shown:
image
The assignment is also created but shows an error whenever you try to access it.

Expected behavior
Similar behavior to when you edit an existing config and click reload config (see #1522). No assignment should be created.
image

Metadata

Metadata

Assignees

No one assigned

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions