Skip to content

Database does not throw error when attempting to connect with incorrect credentials #30

@silrenan

Description

@silrenan

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

  1. enviroment
  • Java: 21
  • Maven: 3.9.9
  • Quarkus: 3.18.1
  • GraphQL: 2.12.1
  1. database configuration
  • Databse: local MySql
  • Connecetion URL: localhost:3306/mysqldb
  • Credentials: admin:admin
  1. 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

  1. 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 } }
  1. run the application
  • mvn quarkus:dev
  1. 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.

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions