You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
However, internally Shopware creates a "custom" request object, removing the en, de, it custom paths, which will not work for subsequent forwards. On the subquent subrequests pathInfo shouldn't be /account/login but it should actually following the main request such as:
Apparently, Shopware team knows the issue, but it's a big regression in such important feature... For example: we can't simply login on the Shopware 6.6.1.1 if we have custom paths.
PHP Version
8.3
Shopware Version
6.6.1.1
Expected behaviour
Login
Actual behaviour
Can't login. Reason: custom path on sales domain.
How to reproduce
Apparently I found out a bug the request forwards. It's a regression, as it used to work before.
I'm currently on Shopware
6.6.1.1
, but I believe it's ocurring in previous versions as well.Let's say that I have the following sales domains:
Then I go to login page of my domains.
So far so good. The pages renders perfectly.
But when I fulfill the login and password fields and hit "Log in" button, the browser sends a POST request and I will get the following error:
The problem is that Shopware is removing the custom paths of my domain (
en
,de
,it
) to match controllers, in this case "/account/login". See: https://github.com/shopware/shopware/blob/trunk/src/Storefront/Framework/Routing/RequestTransformer.php#L99-L215However, internally Shopware creates a "custom" request object, removing the
en
,de
,it
custom paths, which will not work for subsequent forwards. On the subquent subrequestspathInfo
shouldn't be/account/login
but it should actually following the main request such as:Apparently, Shopware team knows the issue, but it's a big regression in such important feature... For example: we can't simply login on the Shopware
6.6.1.1
if we have custom paths.See: https://github.com/shopware/shopware/blob/trunk/src/Storefront/Framework/Routing/RequestTransformer.php#L109-L110
👉👉 Is there anything that we could do about in order to login?
Thank you so much for your time and assistance.
The text was updated successfully, but these errors were encountered: