Attempting to merge user with shared address fails with nasty message
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Evergreen |
Won't Fix
|
Low
|
Unassigned |
Bug Description
Evergreen 2.1
OpenSRF 2.0.1
PostgreSQL 9.1
Debian Squeeze
When a user attempts a patron merge, via the staff client, where one or more of the users has a shared *_address value, as a result of "cloning" at patron registration time, the merge will fail with a really nasty error (attached).
In reality, performing the actual SQL query generated by Evergreen, the fkey constraint on the shared address is apparent to someone with access to do that, but for the end user, they're left wondering why the merge failed.
In my opinion, this is a two parter:
#1 We need to **AT LEAST**tell the staff member why the merge failed, and tell them to contact whoever provides support
#2 Why not NULL out the *_address values for the subordinate user with the shared address, which will allow the merge to continue. This also will allow other users referencing those *_address values to retain their address(es).
Changed in evergreen: | |
status: | New → Confirmed |
importance: | Undecided → Low |
tags: |
added: webstaffclient removed: staffclient |
tags: | added: needsdiscussion |
tags: |
added: patron removed: merge |
tags: | removed: webstaffclient |
We recently encountered this issues twice on 2.4.