Bug 20071

Summary: Hide error displayed when db user tries to catalog anything
Product: Koha Reporter: Indranil Das Gupta <indradg>
Component: CatalogingAssignee: Indranil Das Gupta <indradg>
Status: RESOLVED DUPLICATE QA Contact: Testopia <testopia>
Severity: normal    
Priority: P5 - low CC: jonathan.druart, liz, m.de.rooy
Version: Main   
Hardware: All   
OS: All   
GIT URL: Change sponsored?: ---
Patch complexity: --- Documentation contact:
Documentation submission: Text to go in the release notes:
Version(s) released in:
Circulation function:

Description Indranil Das Gupta 2018-01-23 10:52:49 UTC
When someone is logged in as the db user, attempts to catalog any document, it  throws an exception:

Software error: 
Can't call method "get_effective_marcorgcode" on an undefined value at /home/l2c2technologies/kohaclone/cataloguing/value_builder/marc21_orgcode.pl line 31.

While this is understandable, the error needs to be handled gracefully rather than expose the user to this error screen.
Comment 1 Jonathan Druart 2018-01-23 15:56:12 UTC
Almost everything will explode with the DB user, that's why there is a big warning on the main page.

See bug 11590.

*** This bug has been marked as a duplicate of bug 11590 ***
Comment 2 Liz Rea 2018-01-29 00:36:57 UTC
Also why we put the onboarding tool to allow a superlibrarian to be created at install time. You should probably never, ever, have a reason to log in as this user now.