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 #166080

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

@fw-bot
Copy link
Contributor Author

fw-bot commented May 17, 2024

This PR targets saas-17.2 and is part of the forward-port chain. Further PRs will be created up to master.

More info at https://github.com/odoo/odoo/wiki/Mergebot#forward-port

@robodoo robodoo added the forwardport This PR was created by @fw-bot label May 17, 2024
@C3POdoo C3POdoo added the RD research & development, internal work label May 17, 2024
robodoo pushed a commit that referenced this pull request May 18, 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 #166080

X-original-commit: eb52dad
Signed-off-by: Julien Castiaux (juc) <juc@odoo.com>
Signed-off-by: Christophe Monniez (moc) <moc@odoo.com>
@robodoo
Copy link
Contributor

robodoo commented May 18, 2024

@d-fence @Julien00859 staging failed: ci/runbot (view more at https://runbot.odoo.com/runbot/build/62706264)

@d-fence
Copy link
Contributor

d-fence commented May 19, 2024

robodoo retry
(failling test deactivated)

robodoo pushed a commit that referenced this pull request May 19, 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 #166080

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 19, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
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