invalidate email silent failure

Bug #1950826 reported by Jason Etheridge
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Evergreen
Fix Released
High
Unassigned
3.7
Fix Released
High
Unassigned

Bug Description

Invalidating an email from the patron editor attempts to create a standing penalty with a note that fails under the new consolidated notes regime.

The code is in BadContact.pm, with $usr_penalty->note($_->$contact_type);

One option is to use the open-ils.actor.user.penalty.apply method instead of hand-creating the object.

Revision history for this message
Andrea Neiman (aneiman) wrote :

Confirmed in 3.8 as a likely consequence of bug 1846354

Changed in evergreen:
status: New → Confirmed
importance: Undecided → High
Changed in evergreen:
assignee: nobody → Jason Etheridge (phasefx)
Revision history for this message
Jason Etheridge (phasefx) wrote :

I have a fix at collab/phasefx/lp1950826-invalidate-email

https://git.evergreen-ils.org/?p=working/Evergreen.git;a=shortlog;h=refs/heads/collab/phasefx/lp1950826-invalidate-email

However, I think it perpetuates another bug where the patron editor doesn't properly handle error conditions (though those are hard to simulate, say, with Operator Change and missing permissions).

Revision history for this message
Jason Etheridge (phasefx) wrote :

I force-pushed a new branch that uses simplereq instead of method_lookup. I'll open a separate bug for error handling in the patron editor.

Changed in evergreen:
assignee: Jason Etheridge (phasefx) → nobody
tags: added: pullrequest
tags: added: patron
Revision history for this message
Terran McCanna (tmccanna) wrote :
tags: added: signedoff
Michele Morgan (mmorgan)
Changed in evergreen:
milestone: none → 3.8.1
Bill Erickson (berick)
Changed in evergreen:
assignee: nobody → Bill Erickson (berick)
Revision history for this message
Bill Erickson (berick) wrote :

New branch:

https://git.evergreen-ils.org/?p=working/Evergreen.git;a=shortlog;h=refs/heads/user/berick/lp1950826-invalidate-penalty-fix

1. Includes sign offs for Jason's commit.

2. Adds one more commit to tweak which data is returned to the caller in the case of a penalty creation failure.

Changed in evergreen:
assignee: Bill Erickson (berick) → nobody
tags: removed: signedoff
Revision history for this message
Christine Burns (christine-burns) wrote :

I have tested this code and consent to signing off on it with my name, Christine Burns, and my email address, <email address hidden>

tags: added: signedoff
Bill Erickson (berick)
Changed in evergreen:
assignee: nobody → Bill Erickson (berick)
Revision history for this message
Bill Erickson (berick) wrote :

Merged to 3.7 and up. Thanks, all!

Changed in evergreen:
status: Confirmed → Won't Fix
status: Won't Fix → Fix Committed
assignee: Bill Erickson (berick) → nobody
Changed in evergreen:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.