You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@cocoon.apache.org by Reinhard Pötz <re...@apache.org> on 2008/08/04 14:19:43 UTC
Testing servlet:/ calls without an active request (was: svn commit:
r682355 - in /cocoon/trunk/subprojects/cocoon-servlet-service/cocoon-servlet-service-impl/src/main/java/org/apache/cocoon:
callstack/environment/ servletservice/ servletservice/url/)
reinhard@apache.org wrote:
> Author: reinhard
> Date: Mon Aug 4 05:16:12 2008
> New Revision: 682355
>
> URL: http://svn.apache.org/viewvc?rev=682355&view=rev
> Log:
> . make the CallFramehelper more defensive -> check for null references
> . throw exceptions in the case of a SSF self-reference or relative reference because this always requires a calling SSF request. Only an absolute reference can work without a stand-alone reference
>
> Added:
> cocoon/trunk/subprojects/cocoon-servlet-service/cocoon-servlet-service-impl/src/main/java/org/apache/cocoon/servletservice/NoCallingServletServiceRequestAvailableException.java (with props)
> Modified:
> cocoon/trunk/subprojects/cocoon-servlet-service/cocoon-servlet-service-impl/src/main/java/org/apache/cocoon/callstack/environment/CallFrameHelper.java
> cocoon/trunk/subprojects/cocoon-servlet-service/cocoon-servlet-service-impl/src/main/java/org/apache/cocoon/servletservice/url/ServletURLConnection.java
Any idea how this can be tested with a _simple_ setup?
--
Reinhard Pötz Managing Director, {Indoqa} GmbH
http://www.indoqa.com/en/people/reinhard.poetz/
Member of the Apache Software Foundation
Apache Cocoon Committer, PMC member reinhard@apache.org
________________________________________________________________________