Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[FW][FIX] test_http: adapt test to succeed with ubuntu 24.04 noble #166083

Conversation

fw-bot
Copy link
Contributor

@fw-bot fw-bot commented May 17, 2024

The brand new Ubuntu Noble 24.04 ships python3-werkzeug 3.0.1. This versions has a bug 0 which leads to this test failing as double slashes get fixed by werkzeug even though merge_slashes parameter is set to False by default in Odoo.

This should not have a big impact on real life but the test should be kept to ensure that the actual behavior of a 404 is not broken outside of Ubuntu Noble.

So, with this commit, if the impacted version of werkzeug is used the test will not fail with a fixed url and a redirect response.

The issue that exists from 2.2.0 up to 3.0.1 is fixed upstream 1 in 3.0.2.

A bug report was filled in Ubuntu 2 (Debian is not impacted)

Forward-Port-Of: #165998

The brand new Ubuntu Noble 24.04 ships python3-werkzeug 3.0.1.
This versions has a bug [0] which leads to this test failing as double
slashes get fixed by werkzeug even though `merge_slashes` parameter is
set to False by default in Odoo.

This should not have a big impact on real life but the test should be
kept to ensure that the actual behavior of a 404 is not broken outside
of Ubuntu Noble.

So, with this commit, if the impacted version of werkzeug is used the
test will not fail with a fixed url and a redirect response.

The issue that exists from 2.2.0 up to 3.0.1 is fixed upstream [1] in
3.0.2.

A bug report was filled in Ubuntu [2] (Debian is not impacted)

[0]: pallets/werkzeug#2834
[1]: pallets/werkzeug#2860
[2]: https://bugs.launchpad.net/ubuntu/+source/python-werkzeug/+bug/2066041

X-original-commit: eb52dad
@robodoo
Copy link
Contributor

robodoo commented May 17, 2024

@C3POdoo C3POdoo added the RD research & development, internal work label May 18, 2024
@robodoo robodoo added the forwardport This PR was created by @fw-bot label May 18, 2024
@fw-bot
Copy link
Contributor Author

fw-bot commented May 18, 2024

@d-fence @Julien00859 ci/runbot failed on this forward-port PR

@d-fence
Copy link
Contributor

d-fence commented May 18, 2024

@fw-bot r+

@robodoo
Copy link
Contributor

robodoo commented May 18, 2024

@d-fence you may want to rebuild or fix this PR as it has failed CI.

robodoo pushed a commit that referenced this pull request May 21, 2024
The brand new Ubuntu Noble 24.04 ships python3-werkzeug 3.0.1.
This versions has a bug [0] which leads to this test failing as double
slashes get fixed by werkzeug even though `merge_slashes` parameter is
set to False by default in Odoo.

This should not have a big impact on real life but the test should be
kept to ensure that the actual behavior of a 404 is not broken outside
of Ubuntu Noble.

So, with this commit, if the impacted version of werkzeug is used the
test will not fail with a fixed url and a redirect response.

The issue that exists from 2.2.0 up to 3.0.1 is fixed upstream [1] in
3.0.2.

A bug report was filled in Ubuntu [2] (Debian is not impacted)

[0]: pallets/werkzeug#2834
[1]: pallets/werkzeug#2860
[2]: https://bugs.launchpad.net/ubuntu/+source/python-werkzeug/+bug/2066041

closes #166083

X-original-commit: eb52dad
Signed-off-by: Julien Castiaux (juc) <juc@odoo.com>
Signed-off-by: Christophe Monniez (moc) <moc@odoo.com>
@robodoo robodoo closed this May 21, 2024
@robodoo robodoo added the 17.3 label May 21, 2024
zel-odoo pushed a commit to odoo-dev/odoo that referenced this pull request May 24, 2024
The brand new Ubuntu Noble 24.04 ships python3-werkzeug 3.0.1.
This versions has a bug [0] which leads to this test failing as double
slashes get fixed by werkzeug even though `merge_slashes` parameter is
set to False by default in Odoo.

This should not have a big impact on real life but the test should be
kept to ensure that the actual behavior of a 404 is not broken outside
of Ubuntu Noble.

So, with this commit, if the impacted version of werkzeug is used the
test will not fail with a fixed url and a redirect response.

The issue that exists from 2.2.0 up to 3.0.1 is fixed upstream [1] in
3.0.2.

A bug report was filled in Ubuntu [2] (Debian is not impacted)

[0]: pallets/werkzeug#2834
[1]: pallets/werkzeug#2860
[2]: https://bugs.launchpad.net/ubuntu/+source/python-werkzeug/+bug/2066041

closes odoo#166083

X-original-commit: eb52dad
Signed-off-by: Julien Castiaux (juc) <juc@odoo.com>
Signed-off-by: Christophe Monniez (moc) <moc@odoo.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
17.3 forwardport This PR was created by @fw-bot RD research & development, internal work
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants