Skip to content

Commit a083742

Browse files
authored
Fixes for v4.0.7 (#184)
* Fixes for the 4.0.9 version Fixes #180 Fixes #181 Fixes #183 * Map canvas not draggable: OpenLayers handles the map drag and drop events
1 parent d4cbb35 commit a083742

File tree

3 files changed

+13
-4
lines changed

3 files changed

+13
-4
lines changed

platform/varnish.vcl.template

+11-2
Original file line numberDiff line numberDiff line change
@@ -56,8 +56,17 @@ sub vcl_recv {
5656
/* Authenticated requests are not cacheable */
5757
return (pass);
5858
}
59-
if (req.http.Cookie) { // allow req.http.Authorization
60-
unset req.http.Cookie; // unset all cookies
59+
if (req.http.Cookie) {
60+
# explicitly allow only cookies required by LDH server-side
61+
set req.http.Cookie = ";" + req.http.Cookie;
62+
set req.http.Cookie = regsuball(req.http.Cookie, "; +", ";");
63+
set req.http.Cookie = regsuball(req.http.Cookie, ";(LinkedDataHub\.state|LinkedDataHub\.id_token)=", "; \1=");
64+
set req.http.Cookie = regsuball(req.http.Cookie, ";[^ ][^;]*", "");
65+
set req.http.Cookie = regsuball(req.http.Cookie, "^[; ]+|[; ]+$", "");
66+
67+
if (req.http.cookie ~ "^\s*$") {
68+
unset req.http.cookie;
69+
}
6170
}
6271

6372
return (hash);

pom.xml

+1-1
Original file line numberDiff line numberDiff line change
@@ -323,7 +323,7 @@
323323
<artifactId>frontend-maven-plugin</artifactId>
324324
<version>1.12.1</version>
325325
<configuration>
326-
<nodeVersion>v14.8.0</nodeVersion>
326+
<nodeVersion>v20.8.1</nodeVersion>
327327
</configuration>
328328
<executions>
329329
<execution>

src/main/webapp/static/com/atomgraph/linkeddatahub/xsl/bootstrap/2.3.2/document.xsl

+1-1
Original file line numberDiff line numberDiff line change
@@ -207,7 +207,7 @@ extension-element-prefixes="ixsl"
207207
<xsl:template match="rdf:RDF" mode="bs2:Map">
208208
<xsl:param name="id" as="xs:string"/>
209209
<xsl:param name="class" select="'map-canvas'" as="xs:string?"/>
210-
<xsl:param name="draggable" select="true()" as="xs:boolean?"/> <!-- counter-intuitive but needed in order to trigger "ixsl:ondragstart" on the map and then cancel it -->
210+
<xsl:param name="draggable" select="false()" as="xs:boolean?"/> <!-- OpenLayers handles the map drag and drop events -->
211211

212212
<div>
213213
<xsl:if test="$id">

0 commit comments

Comments
 (0)