Bug report #6898
QGIS mapserver forces http when requesting SLD=https
|Affected QGIS version:||2.18.22||Regression?:||No|
|Operating System:||Linux||Easy fix?:||No|
|Pull Request or Patch supplied:||Yes||Resolution:||fixed/implemented|
|Crashes QGIS or corrupts data:||No||Copied to github as #:||16023|
When trying to use SLD with QGIS mapserver including SLD in GetMap requests qgis-mapserver tries to fetch the SLD-file using only http. Having SLD=https:///www.foo.de/mysld.xml is taken as http:///www.foo.de/mysld.xml - if sld-files are only available via https qgis mapserver can not fetch them. A "premature end of script" error is thrown.
As another side-effect using SLD=https:///www.foo.de:443/mysld.xml with results in a 400 bad request error, because qgis mapserver tries to ftech http:///www.foo.de:443/...
Solution: qgis mapserver should respect https (well, how to handle self-signed certificates then?)
[BUGFIX][Server] Quickfix in QgsHttpTransaction to support HTTPS scheme
The class QgsHttpTransaction is only used in server for getting files provided by URL. This class does not support HTTPS.
This is a quickfix to enable requesting SLD files provided through HTTPS scheme.