Internal Server Error in OPAC when logged-in user has no card
Bug #1668816 reported by
Jeff Davis
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.
Changed in evergreen: | |
status: | New → Confirmed |
importance: | Undecided → Medium |
Changed in evergreen: | |
status: | Fix Committed → Fix Released |
To post a comment you must log in.
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.