Closed cbeach47 closed 3 years ago
Wow! SimpleDBA makes for a good stack trace with the cats and monads.
That all aside though, seems to be in the retrieval of UI Settings. This (java.sql.SQLException: Connection is closed
) has popped up from time to time in our general testing, but for us Advanced Searches have not been an issue. Do you have any thoughts on this @PenghaiZhang
Yes. I have spent a few hours investigating this issue. Actually, it did happen in Advanced Searches when I used a normal user rather than TLE_ADMINISTRATOR. So my first reaction was this was a ACL issue. But later on I found that this issue is caused by reading the UI Settings in SelectionSummarySection
.
I have briefly mentioned in slack that the fix would be using the cached UI settings rather than calling UISettingsJava.getUISettings()
because this method connects to DB whenever it gets called.
@cbeach47 I did grant SEARCH_POWER_SEARCH to my user and it fixed the problem for me
I tested this with multiple users, with different combinations of ACLs. The 500 error no longer happens.
Describe the bug Clicking on an advanced search in the new UI fails with a SQLException. Only happens in the new UI
To Reproduce Steps to reproduce the behavior:
Expected behavior The advanced search widgets to show up.
Screenshots N/A
Stacktrace
Platform:
Additional context The old UI works for this flow