You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@cocoon.apache.org by Leszek Gawron <ou...@kompuart.pl> on 2003/02/05 12:13:26 UTC

[BUG?] Caching and non caching pipelines - any changes lately ?

Has anything changed lately with caching and non caching pipelines? I am using
cocoon as xml data provider from MSSQL/Sybase/Pervasive database. 
My pipeline 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>

It works like that: 
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. 

The problem is that using cocoon HEAD only some days old I started getting
"descriptors/somedata.xml" 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.

regards
	LG
-- 
            __
         | /  \ |        Leszek Gawron            //  \\
        \_\\  //_/      ouzo@vip.net.pl          _\\()//_
         .'/()\'.     Phone: +48(600)341118     / //  \\ \
          \\  //  recursive: adj; see recursive  | \__/ |


---------------------------------------------------------------------
To unsubscribe, e-mail: cocoon-dev-unsubscribe@xml.apache.org
For additional commands, email: cocoon-dev-help@xml.apache.org


[DEFINITELY A BUG] caching pipeline serves wrong content

Posted by Leszek Gawron <ou...@kompuart.pl>.
I compiled current HEAD and run it serveral times in W2k/Tomcat environment.
My whole site works like it was described in first post: 
1. when you try to reach http://url?descriptor=data - a static xml file is
being served (data model descriptor)
2. when you try to reach http://url - a dynamic data is being generated ( xsp +
esql )

after some time of usage cocoon starts serving only the first page version
(the static descriptor) no matter what parameters you provide in request url.

I have a cocoon compilation dated 2003-09-01 (so the HEAD must have been at
least some days old) - everything works fine 

of course when you switch to noncaching pipeline all works fine but that's not
the point.

Please advise
	LG
-- 
            __
         | /  \ |        Leszek Gawron            //  \\
        \_\\  //_/      ouzo@vip.net.pl          _\\()//_
         .'/()\'.     Phone: +48(600)341118     / //  \\ \
          \\  //  recursive: adj; see recursive  | \__/ |


---------------------------------------------------------------------
To unsubscribe, e-mail: cocoon-dev-unsubscribe@xml.apache.org
For additional commands, email: cocoon-dev-help@xml.apache.org


Re: [BUG?] Caching and non caching pipelines - any changes lately ?

Posted by Leszek Gawron <ou...@kompuart.pl>.
On Wed, Feb 05, 2003 at 12:13:26PM +0100, Leszek Gawron wrote:
> Has anything changed lately with caching and non caching pipelines? I am using
The most strange thing in all this is that cocoon works fine for i.e. 2 hours
and suddenly the logs say that the cached response has been found and it is
served since then instead of valid data
	LG
-- 
            __
         | /  \ |        Leszek Gawron            //  \\
        \_\\  //_/      ouzo@vip.net.pl          _\\()//_
         .'/()\'.     Phone: +48(600)341118     / //  \\ \
          \\  //  recursive: adj; see recursive  | \__/ |


---------------------------------------------------------------------
To unsubscribe, e-mail: cocoon-dev-unsubscribe@xml.apache.org
For additional commands, email: cocoon-dev-help@xml.apache.org


Re: [BUG?] Caching and non caching pipelines - any changes lately ?

Posted by Leszek Gawron <ou...@kompuart.pl>.
On Wed, Feb 05, 2003 at 03:28:09PM +0100, Carsten Ziegeler wrote:
> AFAIK there were no changes to the caching in the last week.
> Do you get the correct behaviour when you turn off caching?
Yes I did. It works fine when noncaching pipeline is used. Please mind that
caching version also works correctly for some time (as I said 2 hours in
development environment - one client, url queried about once per 5 minutes)

I'm not quite sure that this is be last week's change. Previous cocoon
build I used was about a 1 - 1.5 month old ( cannot say exactly ).

regards
	LG
-- 
            __
         | /  \ |        Leszek Gawron            //  \\
        \_\\  //_/      ouzo@vip.net.pl          _\\()//_
         .'/()\'.     Phone: +48(600)341118     / //  \\ \
          \\  //  recursive: adj; see recursive  | \__/ |


---------------------------------------------------------------------
To unsubscribe, e-mail: cocoon-dev-unsubscribe@xml.apache.org
For additional commands, email: cocoon-dev-help@xml.apache.org


RE: [BUG?] Caching and non caching pipelines - any changes lately ?

Posted by Carsten Ziegeler <cz...@s-und-n.de>.
AFAIK there were no changes to the caching in the last week.
Do you get the correct behaviour when you turn off caching?

Carsten

> -----Original Message-----
> From: Leszek Gawron [mailto:ouzo@kompuart.pl]
> Sent: Wednesday, February 05, 2003 12:13 PM
> To: cocoon-dev@xml.apache.org
> Subject: [BUG?] Caching and non caching pipelines - any changes lately ?
>
>
> Has anything changed lately with caching and non caching
> pipelines? I am using
> cocoon as xml data provider from MSSQL/Sybase/Pervasive database.
> My pipeline 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>
>
> It works like that:
> 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.

The problem is that using cocoon HEAD only some days old I started getting
"descriptors/somedata.xml" 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.

regards
	LG
--
            __
         | /  \ |        Leszek Gawron            //  \\
        \_\\  //_/      ouzo@vip.net.pl          _\\()//_
         .'/()\'.     Phone: +48(600)341118     / //  \\ \
          \\  //  recursive: adj; see recursive  | \__/ |


---------------------------------------------------------------------
To unsubscribe, e-mail: cocoon-dev-unsubscribe@xml.apache.org
For additional commands, email: cocoon-dev-help@xml.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: cocoon-dev-unsubscribe@xml.apache.org
For additional commands, email: cocoon-dev-help@xml.apache.org