Skip to content

Invalid list keys are being added to lists #11715

@jimchamp

Description

@jimchamp

Problem

Somehow, people have been able to insert the key {"key": ""} into their lists. If a list contains one of these invalid keys, the list's page will fail to render with an error. Similarly, the book page lists section will not render if one of the lists being displayed has an invalid key.

Here is a page for a list that contains an invalid key.

Here is an example of the book page "Lists" section failing to render due to this issue.

Reproducing the bug

  1. Go to ...
  2. Do ...
  • Expected behavior:
  • Actual behavior:

Context

  • Browser (Chrome, Safari, Firefox, etc):
  • OS (Windows, Mac, etc):
  • Logged in (Y/N):
  • Environment (prod, dev, local): prod

Breakdown

Requirements Checklist

  • Find and fix bug that allows a list to contain an invalid key
  • Identify affected lists
  • Remove invalid keys from affected lists (likely requires staff)

Related files

Stakeholders


Instructions for Contributors

  • Please run these commands to ensure your repository is up to date before creating a new branch to work on this issue and each time after pushing code to Github, because the pre-commit bot may add commits to your PRs upstream.

Metadata

Metadata

Assignees

Labels

Lead: @cdriniIssues overseen by Drini (Staff: Team Lead & Solr, Library Explorer, i18n) [managed]Needs: BreakdownThis big issue needs a checklist or subissues to describe a breakdown of work. [managed]Needs: InvestigationThis issue/PR needs a root-cause analysis to determine a solution. [managed]Priority: 1Do this week, receiving emails, time sensitive, . [managed]Theme: ListsIssues related to reading ListsType: BugSomething isn't working. [managed]

Type

No type

Projects

Status

No status

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions