dreamfactory icon indicating copy to clipboard operation
dreamfactory copied to clipboard

Package-manager forces port 80 in download URL/file path

Open petersmythe opened this issue 7 years ago • 1 comments

When clicking Export, an alert pops up with the text The package has been exported <...> The path to the exported package is:.

image

After closing the alert, the path is also displayed next to the Copy to clipboard button.

The path contains :80 in the path, after the hostname, which means that the URL does not work with HTTPS protocol.

If I remove :80 then the URL is correct and the export downloads.

petersmythe avatar Apr 26 '19 06:04 petersmythe

I must add that we are running DreamFactory via Docker, behind Docker Flow Proxy, which maps port 443 externally to port 80 internally. That is why the function Environment::getURI() returns port 80 as the SERVER_PORT. This is called from function saveZipFile in Package.php in df-core.

This issue should actually be migrated to the df-core repo.

petersmythe avatar Apr 26 '19 07:04 petersmythe