-
Notifications
You must be signed in to change notification settings - Fork 2
Database does not throw error when attempting to connect with incorrect credentials #30
Copy link
Copy link
Open
Labels
bugSomething isn't workingSomething isn't working
Description
Is fixed on #35
An issue was noticed when attempting to connect to the database via quarkus using wrong credentials. Please see below:
Steps to replicate
- enviroment
- Java: 21
- Maven: 3.9.9
- Quarkus: 3.18.1
- GraphQL: 2.12.1
- database configuration
- Databse: local MySql
- Connecetion URL: localhost:3306/mysqldb
- Credentials: admin:admin
- quarkus configuration
/src/main/resources/application.properties
quarkus.datasource.db-kind=mysql
quarkus.datasource.jdbc.url=jdbc:mysql://localhost:3306/mysqldb
quarkus.datasource.username=mr_linux
quarkus.datasource.password=matrix
quarkus.args=-XX:+EnableDynamicAgentLoading
- graphQL query:
example query to trigger the connection:
mutation { newTask(task: { description: "test project", priority: Info, tagList: [Personal], creation: "2025-02-02T17:02:01Z", conclusion: null }) { id description priority tagList creation conclusion } }
- run the application
mvn quarkus:dev
- access the frontend and run the grapql query above:
http://localhost:8080/q/dev-ui/io.quarkus.quarkus-smallrye-graphql/graphql-ui
expected behavior
- if incorrect credentials are used, an error should be displayed.
- if incorrect SQL syntax is used, an error should be displayed.
actual behavior / reported error
- incorrect credentials are not triggering error display.
- incorrect SQL syntax is not triggering error display.
additional info
please reach out if additional evidence is needed.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't working