Skip to content

[17.0][PORT] 3185 from 16.0 - #3187

Merged
OCA-git-bot merged 1 commit into
OCA:17.0from
acsone:17.0-3185-port
Feb 5, 2025
Merged

OCA-git-bot merged 1 commit into
OCA:17.0from
acsone:17.0-3185-port

Conversation

@sbidoul

@sbidoul sbidoul commented Feb 4, 2025

Copy link
Copy Markdown
Member

Port #3185 from 16.0 to 17.0.

with the parameter "login" in `_make_postgres_uri()` it becomes impossible to log in with the configured database, as it has to have the name "user". This is because of passing the `connection_info` dict as keywords parameter into the function. But because `connection_info_for` called in `setUp()` reads the config file of odoo and there the database user is `db_user` the keyword parameter is discarded and `login` is not set. The `db_`-prefix is removed. So user and password are not applied to the uri/dsn and thus login to the database is not possible, if the database wants those parameters.

When I applied this change in our internal CI of solute.de, everything worked fine afterwards.

This has to be ported to 17.0 and 18.0 as well.
@StefanRijnhart

Copy link
Copy Markdown
Member

Fasttracking this port that only affects test code

/ocabot merge patch

@OCA-git-bot

Copy link
Copy Markdown
Contributor

Hey, thanks for contributing! Proceeding to merge this for you.
Prepared branch 17.0-ocabot-merge-pr-3187-by-StefanRijnhart-bump-patch, awaiting test results.

@OCA-git-bot
OCA-git-bot merged commit 0ffd94c into OCA:17.0 Feb 5, 2025
@OCA-git-bot

Copy link
Copy Markdown
Contributor

Congratulations, your PR was merged at 5319d1b. Thanks a lot for contributing to OCA. ❤️

@sbidoul
sbidoul deleted the 17.0-3185-port branch February 5, 2025 18:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants