What went wrong?
Saving metadata fails with an HTTP 400 error if the page count is set to 0.
This can happen after using auto-fill. In some cases, the page count is filled as 0 from the metadata source, so the invalid value is not necessarily entered manually by the user.
Steps to reproduce
- Open the metadata editor for a book.
- Set the page count field to 0.
- Save the metadata.
Expected vs actual behavior
Expected behaviour:
The metadata should save successfully, or the UI should clearly prevent 0 as an invalid value before saving.
Actual behaviour:
Saving fails with an HTTP 400 error when the page count is set to 0.
If 0 is not a valid page count, it may be better to clean or normalize the input so 0 is converted back to null / empty instead of being submitted and causing an HTTP 400 error.
Your setup
BookOrbit version tag: 1.10.0
Deployment: docker
OS: Debian Trixie
Browser: Firefox 151.0.4
Relevant logs (optional)
Screenshots (optional)
No response
Before submitting
What went wrong?
Saving metadata fails with an HTTP 400 error if the page count is set to 0.
This can happen after using auto-fill. In some cases, the page count is filled as 0 from the metadata source, so the invalid value is not necessarily entered manually by the user.
Steps to reproduce
Expected vs actual behavior
Expected behaviour:
The metadata should save successfully, or the UI should clearly prevent 0 as an invalid value before saving.
Actual behaviour:
Saving fails with an HTTP 400 error when the page count is set to 0.
If 0 is not a valid page count, it may be better to clean or normalize the input so 0 is converted back to null / empty instead of being submitted and causing an HTTP 400 error.
Your setup
BookOrbit version tag: 1.10.0
Deployment: docker
OS: Debian Trixie
Browser: Firefox 151.0.4
Relevant logs (optional)
Screenshots (optional)
No response
Before submitting