Added content requests ISBNs with trailing text - causes memcache error
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Evergreen |
Invalid
|
Undecided
|
Unassigned | ||
OpenSRF |
Fix Released
|
Undecided
|
Unassigned |
Bug Description
* Evergreen 2.1.x
In Import via Z39.50, attempting to import a record like the following http://
[ERR :11858:
The reason is because the ISBN is not sufficiently sanitized before being passed to the Added Content service.
There are a few ways to handle this:
1) Reuse the ISBN sanitization routines from the OPAC for consistency in the Import from Z39.50 code
2) Teach the Added Content layer to sanitize the incoming key
3) Teach Cache.pm to sanitize requested memcache keys before attempting to store or retrieve them
Re: 2) - one might want to take the approach of passing record IDs into the Added Content service and teaching the service to extract the ISBN, LCCN, OCLCnum, UPC, MusicBrainz tag, Amazon ID, or other identifiers rather than restricting it to solely ISBN-as-key.
Changed in opensrf: | |
status: | Fix Committed → Fix Released |
Changed in evergreen: | |
status: | New → Invalid |
Pushed user/dbs/ lp953299/ clean_cache_ keys to the OpenSRF working repo to address method #3 -- sanitize keys for set/get just before passing them off to memcached. Also added a unit test for said issue.
This should be backported into OpenSRF's rel_2_1 branch.