This is an automated email from the ASF dual-hosted git repository.

asf-gitbox-commits pushed a commit to branch 5.9.x-javax
in repository https://gitbox.apache.org/repos/asf/tapestry-5.git


The following commit(s) were added to refs/heads/5.9.x-javax by this push:
     new 0397b8def Fixing compilation error
0397b8def is described below

commit 0397b8deffa6850ef7f818ae5d3ca0abf6a0eeea
Author: Thiago H. de Paula Figueiredo <[email protected]>
AuthorDate: Sat Oct 17 14:45:34 2026 -0300

    Fixing compilation error
---
 tapestry-core/src/main/.gitignore                  |  1 +
 .../services/ContextAssetProtectionRule.java       | 24 +++++++++++-----------
 .../src/main/resources/META-INF/assets/.gitignore  |  1 +
 .../apache/tapestry5/http/services/Request.java    |  2 +-
 .../ioc/internal/services/PipelineDescriber.java   |  2 +-
 .../ioc/internal/services/PipelineStep.java        |  2 +-
 .../tapestry5/ioc/services/AssembledPipeline.java  |  2 +-
 .../tapestry5/ioc/services/PipelineBuilder.java    |  2 +-
 .../org/apache/tapestry5/json/JSONStringer.java    |  2 +-
 9 files changed, 20 insertions(+), 18 deletions(-)

diff --git a/tapestry-core/src/main/.gitignore 
b/tapestry-core/src/main/.gitignore
new file mode 100644
index 000000000..d234a2724
--- /dev/null
+++ b/tapestry-core/src/main/.gitignore
@@ -0,0 +1 @@
+/typescript/
diff --git 
a/tapestry-ioc/src/main/java/org/apache/tapestry5/ioc/internal/services/PipelineStep.java
 
b/tapestry-core/src/main/java/org/apache/tapestry5/services/ContextAssetProtectionRule.java
similarity index 51%
copy from 
tapestry-ioc/src/main/java/org/apache/tapestry5/ioc/internal/services/PipelineStep.java
copy to 
tapestry-core/src/main/java/org/apache/tapestry5/services/ContextAssetProtectionRule.java
index b61e04278..d983ff4f4 100644
--- 
a/tapestry-ioc/src/main/java/org/apache/tapestry5/ioc/internal/services/PipelineStep.java
+++ 
b/tapestry-core/src/main/java/org/apache/tapestry5/services/ContextAssetProtectionRule.java
@@ -12,23 +12,23 @@
 // See the License for the specific language governing permissions and
 // limitations under the License.
 
-package org.apache.tapestry5.ioc.internal.services;
+package org.apache.tapestry5.services;
+
+import org.apache.tapestry5.ioc.annotations.UsesOrderedConfiguration;
 
 /**
- * Implemented by the bridge classes generated by {@link BridgeBuilder},
- * to expose one step of an assembled pipeline.
+ * Chain-of-responsibility service which defines rules for blocking access to 
context resources
+ * based on their paths. Access is blocked if any rule says it should be 
blocked.
  *
+ * @see ClasspathAssetProtectionRule
  * @since 5.10.0
  */
-public interface PipelineStep
+@UsesOrderedConfiguration(ContextAssetProtectionRule.class)
+public interface ContextAssetProtectionRule
 {
     /**
-     * The filter invoked at this step of the pipeline.
-     */
-    Object getPipelineFilter();
-
-    /**
-     * What this step delegates to: the next {@link PipelineStep}, or the 
terminator at the end of the pipeline.
+     * Tells whether the access to the resource with this path should be 
blocked or not.
+     * If this rule doesn't concern the given path, it should return false.
      */
-    Object getPipelineNext();
-}
+    boolean block(String path);
+}
\ No newline at end of file
diff --git a/tapestry-core/src/main/resources/META-INF/assets/.gitignore 
b/tapestry-core/src/main/resources/META-INF/assets/.gitignore
new file mode 100644
index 000000000..dae9088ce
--- /dev/null
+++ b/tapestry-core/src/main/resources/META-INF/assets/.gitignore
@@ -0,0 +1 @@
+/es-modules/
diff --git 
a/tapestry-http/src/main/java/org/apache/tapestry5/http/services/Request.java 
b/tapestry-http/src/main/java/org/apache/tapestry5/http/services/Request.java
index 4d436e81a..de8f4ad10 100644
--- 
a/tapestry-http/src/main/java/org/apache/tapestry5/http/services/Request.java
+++ 
b/tapestry-http/src/main/java/org/apache/tapestry5/http/services/Request.java
@@ -213,7 +213,7 @@ public interface Request
      * always as a numeric address string (never a hostname).
      *
      * @return a <code>String</code> containing the IP address of the client 
that sent the request
-     * @since 5.10.0
+     * @since 5.9.2
      */
     default String getRemoteAddr() {
         return null;
diff --git 
a/tapestry-ioc/src/main/java/org/apache/tapestry5/ioc/internal/services/PipelineDescriber.java
 
b/tapestry-ioc/src/main/java/org/apache/tapestry5/ioc/internal/services/PipelineDescriber.java
index 7209b726f..2f4fb6a28 100644
--- 
a/tapestry-ioc/src/main/java/org/apache/tapestry5/ioc/internal/services/PipelineDescriber.java
+++ 
b/tapestry-ioc/src/main/java/org/apache/tapestry5/ioc/internal/services/PipelineDescriber.java
@@ -22,7 +22,7 @@ import java.util.List;
  *
  * <p>The {@code toString()} of the bridge classes generated by {@link 
BridgeBuilder} delegates here,
  * as does {@link org.apache.tapestry5.ioc.services.AssembledPipeline}.
- * @since 5.10.0
+ * @since 5.9.2
  */
 public final class PipelineDescriber
 {
diff --git 
a/tapestry-ioc/src/main/java/org/apache/tapestry5/ioc/internal/services/PipelineStep.java
 
b/tapestry-ioc/src/main/java/org/apache/tapestry5/ioc/internal/services/PipelineStep.java
index b61e04278..4996f259f 100644
--- 
a/tapestry-ioc/src/main/java/org/apache/tapestry5/ioc/internal/services/PipelineStep.java
+++ 
b/tapestry-ioc/src/main/java/org/apache/tapestry5/ioc/internal/services/PipelineStep.java
@@ -18,7 +18,7 @@ package org.apache.tapestry5.ioc.internal.services;
  * Implemented by the bridge classes generated by {@link BridgeBuilder},
  * to expose one step of an assembled pipeline.
  *
- * @since 5.10.0
+ * @since 5.9.2
  */
 public interface PipelineStep
 {
diff --git 
a/tapestry-ioc/src/main/java/org/apache/tapestry5/ioc/services/AssembledPipeline.java
 
b/tapestry-ioc/src/main/java/org/apache/tapestry5/ioc/services/AssembledPipeline.java
index 543f33b0e..651856442 100644
--- 
a/tapestry-ioc/src/main/java/org/apache/tapestry5/ioc/services/AssembledPipeline.java
+++ 
b/tapestry-ioc/src/main/java/org/apache/tapestry5/ioc/services/AssembledPipeline.java
@@ -27,7 +27,7 @@ import 
org.apache.tapestry5.ioc.internal.services.PipelineDescriber;
  * The filters and the terminator are recorded as descriptions, taken when the 
pipeline was assembled,
  * rather than as objects, so that a pipeline no longer in use is not kept 
alive by this record.
  *
- * @since 5.10.0
+ * @since 5.9.2
  */
 public final class AssembledPipeline
 {
diff --git 
a/tapestry-ioc/src/main/java/org/apache/tapestry5/ioc/services/PipelineBuilder.java
 
b/tapestry-ioc/src/main/java/org/apache/tapestry5/ioc/services/PipelineBuilder.java
index b272fddd5..993f97ac6 100644
--- 
a/tapestry-ioc/src/main/java/org/apache/tapestry5/ioc/services/PipelineBuilder.java
+++ 
b/tapestry-ioc/src/main/java/org/apache/tapestry5/ioc/services/PipelineBuilder.java
@@ -70,7 +70,7 @@ public interface PipelineBuilder
      * <p>A pipeline is assembled when the service it implements is first 
realized, so the list grows as the application runs.
      *
      * @return the assembled pipelines, or an empty list for an implementation 
that does not keep track of them
-     * @since 5.10.0
+     * @since 5.9.2
      */
     default List<AssembledPipeline> getAssembledPipelines()
     {
diff --git 
a/tapestry-json/src/main/java/org/apache/tapestry5/json/JSONStringer.java 
b/tapestry-json/src/main/java/org/apache/tapestry5/json/JSONStringer.java
index d49b6c3a1..57bed592c 100644
--- a/tapestry-json/src/main/java/org/apache/tapestry5/json/JSONStringer.java
+++ b/tapestry-json/src/main/java/org/apache/tapestry5/json/JSONStringer.java
@@ -58,7 +58,7 @@ import java.util.List;
  * Item 17, "Design and Document or inheritance or else prohibit it" for 
further
  * information.
  * 
- * @deprecated in 5.10.0 without a replacement.
+ * @deprecated in 5.9.2 without a replacement.
  */
 @Deprecated
 class JSONStringer {

Reply via email to