diff options
author | swills <swills@FreeBSD.org> | 2015-10-02 00:10:05 +0800 |
---|---|---|
committer | swills <swills@FreeBSD.org> | 2015-10-02 00:10:05 +0800 |
commit | e133b2978685a1e15690f026ce2ca2ad6b0a6c3c (patch) | |
tree | 82151025911700eb9111ec4de888bce1d96a2c85 /www/helma/files | |
parent | ab29db848fad93fef6b31ecf234a5e0340b1dda8 (diff) | |
download | freebsd-ports-gnome-e133b2978685a1e15690f026ce2ca2ad6b0a6c3c.tar.gz freebsd-ports-gnome-e133b2978685a1e15690f026ce2ca2ad6b0a6c3c.tar.zst freebsd-ports-gnome-e133b2978685a1e15690f026ce2ca2ad6b0a6c3c.zip |
www/helma: fix build with OpenJDK8
PR: 203143
Approved by: decke (maintainer)
Diffstat (limited to 'www/helma/files')
3 files changed, 53 insertions, 0 deletions
diff --git a/www/helma/files/patch-src_helma_framework_RequestTrans.java b/www/helma/files/patch-src_helma_framework_RequestTrans.java new file mode 100644 index 000000000000..ea8aa0aded7f --- /dev/null +++ b/www/helma/files/patch-src_helma_framework_RequestTrans.java @@ -0,0 +1,15 @@ +--- src/helma/framework/RequestTrans.java.orig 2015-09-16 00:39:16 UTC ++++ src/helma/framework/RequestTrans.java +@@ -602,10 +602,10 @@ public class RequestTrans implements Ser + StringTokenizer tok; + + if (auth.startsWith("Basic ")) { +- tok = new StringTokenizer(new String(Base64.decode((auth.substring(6)).toCharArray())), ++ tok = new StringTokenizer(new String(helma.util.Base64.decode((auth.substring(6)).toCharArray())), + ":"); + } else { +- tok = new StringTokenizer(new String(Base64.decode(auth.toCharArray())), ":"); ++ tok = new StringTokenizer(new String(helma.util.Base64.decode(auth.toCharArray())), ":"); + } + + try { diff --git a/www/helma/files/patch-src_helma_framework_ResponseTrans.java b/www/helma/files/patch-src_helma_framework_ResponseTrans.java new file mode 100644 index 000000000000..c46564b32b1b --- /dev/null +++ b/www/helma/files/patch-src_helma_framework_ResponseTrans.java @@ -0,0 +1,27 @@ +--- src/helma/framework/ResponseTrans.java.orig 2015-09-16 00:39:16 UTC ++++ src/helma/framework/ResponseTrans.java +@@ -714,7 +714,7 @@ public final class ResponseTrans extends + // if (contentType != null) + // digest.update (contentType.getBytes()); + byte[] b = digest.digest(response); +- etag = "\"" + new String(Base64.encode(b)) + "\""; ++ etag = "\"" + new String(helma.util.Base64.encode(b)) + "\""; + // only set response to 304 not modified if no cookies were set + if (reqtrans.hasETag(etag) && countCookies() == 0) { + response = new byte[0]; +@@ -891,7 +891,7 @@ public final class ResponseTrans extends + // generation sensitive to changes in the app + byte[] b = digest.digest(MD5Encoder.toBytes(app.getChecksum())); + +- setETag(new String(Base64.encode(b))); ++ setETag(new String(helma.util.Base64.encode(b))); + } + + /** +@@ -1164,4 +1164,4 @@ public final class ResponseTrans extends + public void setRealm(String realm) { + this.realm = realm; + } +-} +\ No newline at end of file ++} diff --git a/www/helma/files/patch-src_helma_servlet_AbstractServletClient.java b/www/helma/files/patch-src_helma_servlet_AbstractServletClient.java new file mode 100644 index 000000000000..89fc27bac544 --- /dev/null +++ b/www/helma/files/patch-src_helma_servlet_AbstractServletClient.java @@ -0,0 +1,11 @@ +--- src/helma/servlet/AbstractServletClient.java.orig 2015-09-16 00:39:16 UTC ++++ src/helma/servlet/AbstractServletClient.java +@@ -510,7 +510,7 @@ public abstract class AbstractServletCli + checksum[i] = (byte) (n); + n >>>= 8; + } +- String etag = "\"" + new String(Base64.encode(checksum)) + "\""; ++ String etag = "\"" + new String(helma.util.Base64.encode(checksum)) + "\""; + res.setHeader("ETag", etag); + String etagHeader = req.getHeader("If-None-Match"); + if (etagHeader != null) { |