Skip to content

[18.0][PORT] 3185 from 16.0 - #3188

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

[18.0][PORT] 3185 from 16.0#3188
OCA-git-bot merged 1 commit into
OCA:18.0from
acsone:18.0-3185-port

Conversation

@sbidoul

@sbidoul sbidoul commented Feb 4, 2025

Copy link
Copy Markdown
Member

Port #3185 from 16.0 to 18.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 StefanRijnhart left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Test failure is unrelated and fixed in #3190

@sbidoul

sbidoul commented Feb 7, 2025

Copy link
Copy Markdown
Member Author

/ocabot merge patch

@OCA-git-bot

Copy link
Copy Markdown
Contributor

On my way to merge this fine PR!
Prepared branch 18.0-ocabot-merge-pr-3188-by-sbidoul-bump-patch, awaiting test results.

@sbidoul

sbidoul commented Feb 7, 2025

Copy link
Copy Markdown
Member Author

Thanks for the fix @StefanRijnhart

@OCA-git-bot
OCA-git-bot merged commit 054bc6c into OCA:18.0 Feb 7, 2025
@OCA-git-bot

Copy link
Copy Markdown
Contributor

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

@sbidoul
sbidoul deleted the 18.0-3185-port branch February 7, 2025 12:38
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