Editing a book fails when malformed table of contents data is submitted #10314
Labels
Lead: @cdrini
Issues overseen by Drini (Staff: Team Lead & Solr, Library Explorer, i18n) [managed]
Module: Table of Contents
Needs: Breakdown
This big issue needs a checklist or subissues to describe a breakdown of work. [managed]
Priority: 3
Issues that we can consider at our leisure. [managed]
Type: Bug
Something isn't working. [managed]
Problem
Using the book edit UI, patrons can add table of contents data to an edition. When this data is formatted properly, a rich table of contents will be displayed on the edition's page.
Unfortunately, if the data is malformed such that it cannot be parsed, the edit operation fails and the patron is shown an unhelpful error page:
Here is an example of a malformed table of contents entry:
Example well-formed table of contents
* | Forward | 1 ** 1 | A new chapter | 12
Removing the second
|
character from line two corrected the malformed entry.Reproducing the bug
Using you local development environment:
Context
Breakdown
Requirements Checklist
Related files
Stakeholders
Instructions for Contributors
The text was updated successfully, but these errors were encountered: