openlibrary icon indicating copy to clipboard operation
openlibrary copied to clipboard

Add a book errors with "notfound" trying to match existing work

Open cdrini opened this issue 2 years ago • 2 comments

{'at': {'key': '/books/OL28M', 'property': 'works'}, 'error': 'notfound', 'key': '/works//works/OL2896727W'}

^ Note the wrong work key.

Evidence / Screenshot (if possible)

image

Steps to Reproduce

  1. Click "Add a book"
  2. Fill the fields, trying to create an edition that will match an existing work, but not an existing edition
  3. Set the action="?debug=true" on the main form element
  4. 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

cdrini avatar Mar 15 '22 00:03 cdrini

P2 since you can get around this by click on the "Add an edition" link on a work.

cdrini avatar Mar 15 '22 00:03 cdrini

@cdrini, I'd like to work on this!

scottbarnes avatar Sep 16 '22 05:09 scottbarnes