dreamfactorysoftware / dreamfactory

DreamFactory API Management Platform
https://www.dreamfactory.com
Apache License 2.0
1.53k stars 311 forks source link

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

Closed petersmythe closed 1 month ago

petersmythe commented 5 years ago

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 commented 5 years ago

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.