Skip to content

Fix URL validation in MongoDB engine - #89970

Merged
azat merged 2 commits into
ClickHouse:masterfrom
nauu:fix_url
Nov 19, 2025
Merged

azat merged 2 commits into
ClickHouse:masterfrom
nauu:fix_url

Conversation

@nauu

@nauu nauu commented Nov 13, 2025 •

Copy link
Copy Markdown
Member

Changelog category (leave one):

  • Bug Fix (user-visible misbehavior in an official stable release)

Changelog entry (a user-readable short description of the changes that goes into CHANGELOG.md):

Fix URL validation in MongoDB engine when username contains '@' character. Previously, usernames with '@' would cause an error due to improper encoding.

Details

When a username contains '@' it will occur error Invalid host string in URI: an invalid MongoDB URI was provided. This is due to the username not being encoded, and this PR fixes it by properly encoding the username.

@nauu nauu added the can be tested Allows running workflows for external contributors label Nov 13, 2025
@clickhouse-gh

clickhouse-gh Bot commented Nov 13, 2025 •

Copy link
Copy Markdown
Contributor

Workflow [PR], commit [74d398d]

Summary: ❌

job_name test_name status info comment
Stateless tests (arm_asan, targeted) failure
01459_manual_write_to_replicas_quorum_detach_attach FAIL cidb, flaky
Integration tests (amd_asan, db disk, old analyzer, 2/6) failure
test_external_http_authenticator/test.py::test_user_from_config_basic_auth_pass FAIL cidb
test_external_http_authenticator/test.py::test_user_create_basic_auth_pass FAIL cidb
test_external_http_authenticator/test.py::test_basic_auth_failed FAIL cidb
test_external_http_authenticator/test.py::test_header_failed FAIL cidb
test_external_http_authenticator/test.py::test_session_settings_from_auth_response FAIL cidb
BuzzHouse (amd_debug) failure
Logical error: 'Inconsistent AST formatting: the query: FAIL cidb
BuzzHouse (arm_asan) failure
Logical error: 'false && "WriteBuffer is neither finalized nor canceled in destructor."'. FAIL cidb
BuzzHouse (amd_tsan) failure
Received signal 17 FAIL cidb

@clickhouse-gh clickhouse-gh Bot added the pr-bugfix Pull request with bugfix, not backported by default label Nov 13, 2025
@antonio2368 antonio2368 self-assigned this Nov 13, 2025
@nauu

nauu commented Nov 17, 2025

Copy link
Copy Markdown
Member Author

Hi @antonio2368 some tests failed and not related

Comment thread src/Storages/StorageMongoDB.cpp Resolved
@azat
azat enabled auto-merge November 18, 2025 16:45
@azat azat self-assigned this Nov 19, 2025
@azat
azat added this pull request to the merge queue Nov 19, 2025
Merged via the queue into ClickHouse:master with commit d17efdc Nov 19, 2025
@robot-ch-test-poll4 robot-ch-test-poll4 added the pr-synced-to-cloud The PR is synced to the cloud repo label Nov 19, 2025
@nauu nauu added the pr-must-backport Pull request should be backported intentionally. Use this label with great care! label Nov 19, 2025
@robot-ch-test-poll3 robot-ch-test-poll3 added the pr-must-backport-synced The `*-must-backport` labels are synced into the cloud Sync PR label Nov 19, 2025
@robot-ch-test-poll3 robot-ch-test-poll3 added the pr-backports-created Backport PRs are successfully created, it won't be processed by CI script anymore label Nov 19, 2025
azat added a commit that referenced this pull request Nov 21, 2025
Backport #89970 to 25.8: Fix URL validation in MongoDB engine
azat added a commit that referenced this pull request Nov 21, 2025
Backport #89970 to 25.9: Fix URL validation in MongoDB engine
azat added a commit that referenced this pull request Nov 21, 2025
Backport #89970 to 25.10: Fix URL validation in MongoDB engine
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

can be tested Allows running workflows for external contributors pr-backports-created Backport PRs are successfully created, it won't be processed by CI script anymore pr-bugfix Pull request with bugfix, not backported by default pr-must-backport Pull request should be backported intentionally. Use this label with great care! pr-must-backport-synced The `*-must-backport` labels are synced into the cloud Sync PR pr-synced-to-cloud The PR is synced to the cloud repo

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants