processor.php getHostUrl() does not detect the server port correctly #12969
Labels
Fixed in 2.2.x
The issue has been fixed in 2.2 release line
Fixed in 2.3.x
The issue has been fixed in 2.3 release line
Issue: Clear Description
Gate 2 Passed. Manual verification of the issue description passed
Issue: Confirmed
Gate 3 Passed. Manual verification of the issue completed. Issue is confirmed
Issue: Format is valid
Gate 1 Passed. Automatic verification of issue format passed
Issue: Ready for Work
Gate 4. Acknowledged. Issue is added to backlog and ready for development
Reproduced on 2.1.x
The issue has been reproduced on latest 2.1 release
Reproduced on 2.2.x
The issue has been reproduced on latest 2.2 release
Reproduced on 2.3.x
The issue has been reproduced on latest 2.3 release
When Magento runs using the sandwich hosting set up (nginx-Varnish-nginx), and the backend nginx run on a not standard port (80 nor 443), the base URL is detected wrong in pub/errors/processor.hp
Preconditions
Steps to reproduce
var/resource_config.json
Expected result
Actual result
$_SERVER['SERVER_PORT']
, for example:The logic in
processor.php
should be similar to one in//vendor/zendframework/zend-http/src/PhpEnvironment/Request.php
:$_SERVER['SERVER_NAME']
:$_SERVER['SERVER_PORT']
At this moment also in 2.3-develop branch the server port is always concatenated:
The text was updated successfully, but these errors were encountered: