Internal Server Error in OPAC when logged-in user has no card

Bug #1668816 reported by Jeff Davis
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Evergreen
Fix Released
Medium
Unassigned

Bug Description

Evergreen 2.12 beta

When logging in as a user who does not have a card (e.g. global admin account), the OPAC gives an Internal Server Error. The cause is a line of code that's new in 2.12 beta; I'll share a fix in a moment.

Tags: pullrequest
Revision history for this message
Jeff Davis (jdavis-sitka) wrote :

Fix is in branch user/jeffdavis/lp1668816-500-error-when-no-card of the working repo.

To test:

1. Create an account that has no card (actor.usr.card is null). You may have an admin account like this already.
2. Login to the OPAC using the account. You will get an internal server error.
3. Apply the fix in the branch above and restart Evergreen.
4. Try to login again. You should no longer get an error.

Changed in evergreen:
milestone: none → 2.12-rc
tags: added: pullrequest
Kathy Lussier (klussier)
Changed in evergreen:
status: New → Confirmed
importance: Undecided → Medium
Revision history for this message
Kathy Lussier (klussier) wrote :

Thank you Jeff. With the patch, login behavior worked as expected for me, with and without a card and with and without e-book integration enabled.

Merged to master.

Changed in evergreen:
status: Confirmed → Fix Committed
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.