You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@tapestry.apache.org by th...@apache.org on 2020/07/19 15:09:20 UTC
[tapestry-5] branch java9modules updated (27016a1 -> de266a7)
This is an automated email from the ASF dual-hosted git repository.
thiagohp pushed a change to branch java9modules
in repository https://gitbox.apache.org/repos/asf/tapestry-5.git.
from 27016a1 TAP5-2631: fixing broken test
new 8fc9d87 TAP5-2632: slashes in context URLs are not handled properly
new de266a7 TAP5-2602: 5.4 LinkSubmit does not work with Prototype JS
The 2 revisions listed above as "new" are entirely new to this
repository and will be described in separate emails. The revisions
listed as "add" were already present in the repository and have only
been added to this reference.
Summary of changes:
.../internal/services/assets/ContextAssetRequestHandler.java | 2 +-
.../org/apache/tapestry5/t5-core-dom.coffee | 7 ++++++-
2 files changed, 7 insertions(+), 2 deletions(-)
[tapestry-5] 01/02: TAP5-2632: slashes in context URLs are not
handled properly
Posted by th...@apache.org.
This is an automated email from the ASF dual-hosted git repository.
thiagohp pushed a commit to branch java9modules
in repository https://gitbox.apache.org/repos/asf/tapestry-5.git
commit 8fc9d875d2cb6dbaf17b24571a7289a08bdbffd9
Author: Thiago H. de Paula Figueiredo <th...@arsmachina.com.br>
AuthorDate: Sat Jul 18 16:16:50 2020 -0300
TAP5-2632: slashes in context URLs are not handled properly
---
.../tapestry5/internal/services/assets/ContextAssetRequestHandler.java | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/tapestry-core/src/main/java/org/apache/tapestry5/internal/services/assets/ContextAssetRequestHandler.java b/tapestry-core/src/main/java/org/apache/tapestry5/internal/services/assets/ContextAssetRequestHandler.java
index 75a4b6c..473eded 100644
--- a/tapestry-core/src/main/java/org/apache/tapestry5/internal/services/assets/ContextAssetRequestHandler.java
+++ b/tapestry-core/src/main/java/org/apache/tapestry5/internal/services/assets/ContextAssetRequestHandler.java
@@ -35,7 +35,7 @@ public class ContextAssetRequestHandler implements AssetRequestHandler
private final Resource rootContextResource;
- private final Pattern illegal = Pattern.compile("^(((web|meta)-inf.*)|(.*\\.tml$))", Pattern.CASE_INSENSITIVE);
+ private final Pattern illegal = Pattern.compile("^(/*((web|meta)-inf.*)|(.*\\.tml$))", Pattern.CASE_INSENSITIVE);
public ContextAssetRequestHandler(ResourceStreamer resourceStreamer, Resource rootContextResource)
{
[tapestry-5] 02/02: TAP5-2602: 5.4 LinkSubmit does not work with
Prototype JS
Posted by th...@apache.org.
This is an automated email from the ASF dual-hosted git repository.
thiagohp pushed a commit to branch java9modules
in repository https://gitbox.apache.org/repos/asf/tapestry-5.git
commit de266a73e70d9bfebb3008f5a6b989742664e48f
Author: Thiago H. de Paula Figueiredo <th...@arsmachina.com.br>
AuthorDate: Sun Jul 19 12:07:21 2020 -0300
TAP5-2602: 5.4 LinkSubmit does not work with Prototype JS
---
.../org/apache/tapestry5/t5-core-dom.coffee | 7 ++++++-
1 file changed, 6 insertions(+), 1 deletion(-)
diff --git a/tapestry-core/src/main/preprocessed-coffeescript/org/apache/tapestry5/t5-core-dom.coffee b/tapestry-core/src/main/preprocessed-coffeescript/org/apache/tapestry5/t5-core-dom.coffee
index 7eda282..79c22b0 100644
--- a/tapestry-core/src/main/preprocessed-coffeescript/org/apache/tapestry5/t5-core-dom.coffee
+++ b/tapestry-core/src/main/preprocessed-coffeescript/org/apache/tapestry5/t5-core-dom.coffee
@@ -555,7 +555,12 @@ define ["underscore", "./utils", "./events", "jquery"],
if memo
throw new Error "Memo must be null when triggering a native event"
- fireNativeEvent @element, eventName
+ # Hacky solution for TAP5-2602 (5.4 LinkSubmit does not work with Prototype JS)
+ unless Prototype.Browser.WebKit and eventName == 'submit' and @element instanceof HTMLFormElement
+ fireNativeEvent @element, eventName
+ else
+ @element.submit()
+
#endif
# With no parameters, returns the current value of the element (which must be a form control element, such as `<input>` or