From aa99a6d818490f7aa956cdc283c89781e0a60736 Mon Sep 17 00:00:00 2001 From: Jumper Chen Date: Mon, 7 Oct 2024 16:43:52 +0800 Subject: [PATCH] ZK-5546: Websocket endpoint doesn't trigger timeout-uri redirect after desktop timeout --- zkdoc/release-note | 1 + .../src/main/webapp/test2/B101-ZK-5546-zk.xml | 12 +++++ zktest/src/main/webapp/test2/B101-ZK-5546.zul | 33 ++++++++++++++ .../src/main/webapp/test2/config.properties | 1 + .../zktest/zats/test2/B101_ZK_5546Test.java | 45 +++++++++++++++++++ 5 files changed, 92 insertions(+) create mode 100644 zktest/src/main/webapp/test2/B101-ZK-5546-zk.xml create mode 100644 zktest/src/main/webapp/test2/B101-ZK-5546.zul create mode 100644 zktest/src/test/java/org/zkoss/zktest/zats/test2/B101_ZK_5546Test.java diff --git a/zkdoc/release-note b/zkdoc/release-note index 49005a5fd1..5b0b667bae 100644 --- a/zkdoc/release-note +++ b/zkdoc/release-note @@ -31,6 +31,7 @@ ZK 10.1.0 ZK-5798: Client MVVM: Content missing in Include ZK-5799: Javascript error when using Pdfviewer in Client MVVM ZK-5801: Client MVVM: switching apply template causing javascript error + ZK-5546: Websocket endpoint doesn't trigger timeout-uri redirect after desktop timeout * Upgrade Notes + Remove Htmls.encodeJavaScript(), Strings.encodeJavaScript(), Strings.escape() with Strings.ESCAPE_JAVASCRIPT, and replace them with OWASP Java Encoder APIs instead. diff --git a/zktest/src/main/webapp/test2/B101-ZK-5546-zk.xml b/zktest/src/main/webapp/test2/B101-ZK-5546-zk.xml new file mode 100644 index 0000000000..1bb7a07a79 --- /dev/null +++ b/zktest/src/main/webapp/test2/B101-ZK-5546-zk.xml @@ -0,0 +1,12 @@ + + + + org.zkoss.zkmax.au.websocket.WebSocketWebAppInit + + + + 1 + + /timeout.zul + + \ No newline at end of file diff --git a/zktest/src/main/webapp/test2/B101-ZK-5546.zul b/zktest/src/main/webapp/test2/B101-ZK-5546.zul new file mode 100644 index 0000000000..65196096a4 --- /dev/null +++ b/zktest/src/main/webapp/test2/B101-ZK-5546.zul @@ -0,0 +1,33 @@ + + + + + +