biblio.extract_located_uris does not find existing, active asset.uris when use_restriction is NULL
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Evergreen |
Fix Released
|
High
|
Dan Scott |
Bug Description
* Evergreen 2.0.6
* PostgreSQL 9.0.4
* Debian Squeeze (database server)
The current logic in biblio.
-- look for a matching uri
IF NOT FOUND THEN -- create one
END IF;
However, if there is no public note, then use_restriction / uri_use are NULL and the first SELECT always returns 0 rows, resulting in a new asset.uri entry being created. We need to handle the case where uri_use is NULL properly and avoid creating a new row every time the record is ingested.
Here's an example 856 that triggers the problem:
856 4 0 ‡uhttp:
Changed in evergreen: | |
milestone: | none → 2.0.7 |
status: | Fix Committed → Fix Released |
Fix in progress at user/dbs/ lp797304_ lp797307 (see related asset.uri bug 797304).