ClickHouse / ClickHouse/clickhouse-java

No alert in spring log for "Not enough privileges." error

Open
#621 9 comments 0 reactions 0 assignees View on GitHub
action:verify jdbc-v1 question
Dominant language
Java
Stars
1.6k
Forks
637
Avg merge
2d 23h
Merged PRs (30d)
29

Description

Here are 2 scenarios:

## 1. Correct user/pasword but wrong database in URL
Steps to reproduce:
1. Configurations in application.yml. Correct user/pasword but wrong database in URL
2. Hardcode the correct database name in mapper.xml
3. `We won't get any warnning info or alert when starting the spring application`
4. `Also no alert when we call the corresponding api interface thru postman or others`

## 2. Correct user/pasword and correct database in URL, but wrong database name in mapper.xml
Steps to reproduce:
1. Configurations in application.yml. Correct user/pasword and correct database in URL
2. Hardcode the wrong database name in mapper.xml
3. `Call the interface by postman or else, we got 500 error.`
4. `No alert in application log.`

Contributor guide

Open the contributing guide

Research direction

Reproduce both scenarios using the application.yml configuration and the database names in mapper.xml, then observe startup and API calls through Postman or another client. Trace where the "Not enough privileges." error is handled and determine what log or alert should appear; done means the error is visible in the application log in both cases.

Written by the indexing model from the issue text.

Assessment

Tech stack
java, spring
Domain
backend, databases
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.