[ http://issues.apache.org/jira/browse/COCOON-587?page=all ]
     
Helma van der Linden reopened COCOON-587:
-----------------------------------------

    Assign To:     (was: Leszek Gawron)

reopened just to set the resolution to fixed

> caching pipeline serves wrong content
> -------------------------------------
>
>          Key: COCOON-587
>          URL: http://issues.apache.org/jira/browse/COCOON-587
>      Project: Cocoon
>         Type: Bug
>   Components: * Cocoon Core
>     Versions: 2.1.8-dev (Current SVN)
>  Environment: Operating System: other
> Platform: Other
>     Reporter: Leszek Gawron
>     Priority: Blocker

>
> The pipeline configuration looks like this: 
> <map:match pattern="protected/data/*">
>       <map:aggregate element="root">
>               <map:part src="xml/status-ok.xml" strip-root="true"/>
>               <map:part src="cocoon:/data/{1}" strip-root="true"/>
>       </map:aggregate>
> </map:match>
> [...]
> <map:match pattern="data/*">
>       <map:select type="request-parameter">
>               <map:when test="data">
>                       <map:generate src="descriptors/{1}.xml"/>
>               </map:when>
>               <map:when test="filter">
>                       <map:generate src="descriptors/{1}-filter.xml"/>
>               </map:when>
>               <map:otherwise>
>                       <map:generate src="data/{1}.xsp" type="serverpages"/>
>                       <map:transform src="stylesheets/default.xsl"/>
>               </map:otherwise>
>       </map:select>
>       <map:serialize/>
> </map:match>
> request parameter selector is :
> <map:selector logger="sitemap.selector.request-parameter" 
>       name="request-parameter" 
>       src="org.apache.cocoon.selection.RequestParameterSelector">
>       <parameter-name>descriptor</parameter-name>
> </map:selector>
> The logic behind that is: 
> if user requests http://host/cocoon/protected/data/somedata - xml data from
> database is provided
> if user requests http://host/cocoon/protected/data/somedata?descriptor=file 
> or 
> http://host/cocoon/protected/data/somedata?descriptor=data static xml files
> are sent that describe the rowset. 
> While working with cocoon after Tomcat restarts it works well (sometimes 30 
> minutes sometimes even 2 hours), when suddenly logs say that cached response 
> has been found and since then only the static 
> descriptor "descriptors/somedata.xml" is being served no matter what 
> parameters 
> in the URL are sent.
> I am using default pipeline configuration I'm also sure that is not due to the
> client side caching. The problem did not occur in HEAD compilation dated 
> somewhere at the beginning of the year (I think I have checked out 2003-01-01 
> state to compile but I'm not sure)

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
   http://www.atlassian.com/software/jira

Reply via email to