svn commit: r1414265 - /cocoon/cocoon3/trunk/cocoon-sitemap/src/main/java/org/apache/cocoon/sitemap/node/PipelineNode.java

[email protected]
Newsgroups gmane.text.xml.cocoon.cvs
Message-ID <[email protected]>
Author: ilgrosso
Date: Tue Nov 27 17:08:07 2012
New Revision: 1414265

URL: http://svn.apache.org/viewvc?rev=1414265&view=rev
Log:
[COCOON3-113] Explicitly set type to 'noncaching' when executing error pipelines

Modified:
    cocoon/cocoon3/trunk/cocoon-sitemap/src/main/java/org/apache/cocoon/sitemap/node/PipelineNode.java

Modified: cocoon/cocoon3/trunk/cocoon-sitemap/src/main/java/org/apache/cocoon/sitemap/node/PipelineNode.java
URL: http://svn.apache.org/viewvc/cocoon/cocoon3/trunk/cocoon-sitemap/src/main/java/org/apache/cocoon/sitemap/node/PipelineNode.java?rev=1414265&r1=1414264&r2=1414265&view=diff
==============================================================================
--- cocoon/cocoon3/trunk/cocoon-sitemap/src/main/java/org/apache/cocoon/sitemap/node/PipelineNode.java (original)
+++ cocoon/cocoon3/trunk/cocoon-sitemap/src/main/java/org/apache/cocoon/sitemap/node/PipelineNode.java Tue Nov 27 17:08:07 2012
@@ -105,7 +105,11 @@ public class PipelineNode extends Abstra
     }
 
     protected void installPipeline(final Invocation invocation) {
-        invocation.installPipeline(PIPELINE_CATEGORY + this.type, "true".equalsIgnoreCase(this.internalOnly),
+        // COCOON3-113: explicitly set type to 'noncaching' when executing error pipelines
+        final String runtimeType = invocation.isErrorInvocation()
+                ? "noncaching" : this.type;
+
+        invocation.installPipeline(PIPELINE_CATEGORY + runtimeType, "true".equalsIgnoreCase(this.internalOnly),
                 this.getParameters());
     }
 }
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.