openlibrary
openlibrary copied to clipboard
Add a book errors with "notfound" trying to match existing work
{'at': {'key': '/books/OL28M', 'property': 'works'}, 'error': 'notfound', 'key': '/works//works/OL2896727W'}
^ Note the wrong work key.
Evidence / Screenshot (if possible)
Steps to Reproduce
- Click "Add a book"
- Fill the fields, trying to create an edition that will match an existing work, but not an existing edition
- Set the
action="?debug=true"
on the main form element - Hit "Add"
- Actual: Error is thrown: "notfound"
- Expected: Edition to be added to existing work
Details
- **Logged in (Y/N)?**Y
- **Browser type/version?**FF
- **Operating system?**win10
- Environment (prod/dev/local)? prod, local
Proposal & Constraints
Related files
Stakeholders
@jimchamp
P2 since you can get around this by click on the "Add an edition" link on a work.
@cdrini, I'd like to work on this!