Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Connection loss or db name when extending pREST #358

Closed
crgimenes opened this issue Jul 24, 2019 · 1 comment
Closed

Connection loss or db name when extending pREST #358

crgimenes opened this issue Jul 24, 2019 · 1 comment
Labels

Comments

@crgimenes
Copy link
Contributor

I'm extending pREST and using config.PrestConf.Adapter.* to directly manipulate the database.

If someone happens to send an incorrect URL to the server, such as: http://example.com/nondb/public/tablename (with a database that doesn't exist) the server tries to open the db, fails and returns the error as expected but it loses the old connection or database name. Then no direct SQL statement will work anymore.

If I send a valid URL the pREST reconnects to the database and then everything works again.

@crgimenes crgimenes added the bug label Jul 24, 2019
@arxdsilva
Copy link
Member

@crgimenes this should be fixed by version v1.1.0, could you update to v1.1.2 and retry?

I'll close this and if it doesnt work feel free to reopen

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants