xgi / houdoku-extensions

18 stars 6 forks source link

Komga: Remember/Reuse session while application is running #61

Closed noaione closed 1 year ago

noaione commented 1 year ago

Acknowledgements

Houdoku version

2.10.1

Affected extension(s)

Komga 1.1.4

Steps to reproduce

Just explore the extension library, read, adding series, and more.

Expected behavior

Session are reused for every request made to the extension.

Actual behavior

Every time a new request is made, it sends a request with a new Authentication which revoke the previous one.

This destroy/spammed the server with AuthenticationActivity request that actually makes my server SQL timed out:

org.jooq.exception.DataAccessException: SQL [insert into AUTHENTICATION_ACTIVITY (USER_ID, EMAIL, IP, USER_AGENT, SUCCESS, ERROR, SOURCE) values (?, ?, ?, ?, ?, ?, ?)]; SqliteUdfPool - Connection is not available, request timed out after 35168ms.

Logs

Additional information

Running on:

This might be a problem for the main app too tbh.