Skip to content

Conversation

fw-bot
Copy link
Contributor

@fw-bot fw-bot commented Mar 20, 2025

If the target url had duplicate keys in its query params, the redirect url would only contain the key-value pair corresponding to the first occurrence of the key. This is incorrect, as a shop url typically contains multiple attribute values in its query params. The issue was caused by an accidental cast from MultiDict to Dict when handling the query params.

opw-4466925

Forward-Port-Of: #199570

@robodoo
Copy link
Contributor

robodoo commented Mar 20, 2025

Pull request status dashboard

@robodoo robodoo added forwardport This PR was created by @fw-bot conflict There was an error while creating this forward-port PR labels Mar 20, 2025
@fw-bot
Copy link
Contributor Author

fw-bot commented Mar 20, 2025

@ltinel cherrypicking of pull request #199570 failed.

stdout:

Auto-merging addons/link_tracker/models/link_tracker.py
CONFLICT (content): Merge conflict in addons/link_tracker/models/link_tracker.py

Either perform the forward-port manually (and push to this branch, proceeding as usual) or close this PR (maybe?).

In the former case, you may want to edit this PR message as well.

⚠️ after resolving this conflict, you will need to merge it via @robodoo.

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

@C3POdoo C3POdoo added the OE the report is linked to a support ticket (opw-...) label Mar 20, 2025
@ltinel ltinel force-pushed the saas-17.4-16.0-fix-link-tracker-query-loti-424414-fw branch from 267a23b to b98dcdc Compare March 21, 2025 07:53
If the target url had duplicate keys in its query params, the redirect url would
only contain the key-value pair corresponding to the first occurrence of the
key. This is incorrect, as a shop url typically contains multiple attribute
values in its query params. The issue was caused by an accidental cast from
MultiDict to Dict when handling the query params.

opw-4466925
@ltinel ltinel force-pushed the saas-17.4-16.0-fix-link-tracker-query-loti-424414-fw branch from b98dcdc to c9830d6 Compare March 21, 2025 07:55
@C3POdoo C3POdoo requested a review from a team March 21, 2025 07:55
@ltinel
Copy link
Contributor

ltinel commented Mar 21, 2025

@robodoo r+

robodoo pushed a commit that referenced this pull request Mar 21, 2025
If the target url had duplicate keys in its query params, the redirect url would
only contain the key-value pair corresponding to the first occurrence of the
key. This is incorrect, as a shop url typically contains multiple attribute
values in its query params. The issue was caused by an accidental cast from
MultiDict to Dict when handling the query params.

opw-4466925

closes #202744

Signed-off-by: Louis Tinel (loti) <loti@odoo.com>
@robodoo robodoo closed this Mar 21, 2025
@fw-bot fw-bot deleted the saas-17.4-16.0-fix-link-tracker-query-loti-424414-fw branch March 28, 2025 11:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
conflict There was an error while creating this forward-port PR forwardport This PR was created by @fw-bot OE the report is linked to a support ticket (opw-...)
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants