Download & Extend

JS file URL (openlayers_source) should respect RFC 1808 Section 4

Project:OpenLayers
Version:6.x-2.x-dev
Component:OL UI
Category:feature request
Priority:normal
Assigned:Unassigned
Status:closed (fixed)

Issue Summary

At present, it is not possible to enter the URL source for OpenLayers.js using // before the domain name (RFC 1808, Section 4) which allows the browser to determine which protocol to use to retreive the file (HTTPS / HTTP). eg. //www.example.com/js/OpenLayers.js

While openlayers.org itself does not support HTTPS (eg. https://openlayers.org/dev/OpenLayers.js), we use a file from our CDN which does support HTTPS.

Patch attached.

AttachmentSizeStatusTest resultOperations
openlayers_rfc_1808.patch745 bytesTest request sentNoneView details

Comments

#1

Added user explanation of the use of the double slash.

AttachmentSizeStatusTest resultOperations
openlayers_rfc_1808_2.patch1.67 KBTest request sentNoneView details

#2

Status:needs review» needs work

Hello @andrewsuth,

Thanks for your patch!
I'm willing to commit it but I need a patch for OL 7.x then I'll commit this patch to OL 6.x.

Thanks

#3

Patch for 7.x-2.x

AttachmentSizeStatusTest resultOperations
0001-Issue-1694048-JS-file-URL-openlayers_source-should-r.patch2.36 KBTest request sentNoneView details

#4

Status:needs work» needs review

#5

Status:needs review» fixed

Committed on 7.x & 6.x.

Thanks andrewsuth !

#6

Status:fixed» closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.

nobody click here