Brendiem / ala-citizenscience

Automatically exported from code.google.com/p/ala-citizenscience
0 stars 1 forks source link

Taxonlib detection implementation needs work #346

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Create a portal that doesn't use Taxonlib.
2. Use the portal.

What is the expected output? What do you see instead?
The Interceptor class always creates a TaxonLib session factory in the 
pre-processing then in post-processing selects from the user preference and 
attempts to close the session factory.
Every single request results in a query on the preferences, an exception and 
log messages saying taxon lib is not configured.

This isn't great from a performance or logging perspective, ideally the session 
factory would be attached in a separate interceptor that would only be 
configured if taxon lib is wanted.

Please use labels and text to provide additional information.

Original issue reported on code.google.com by chris.go...@gmail.com on 27 Sep 2012 at 1:52