You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@cocoon.apache.org by Phil Blake <ph...@sparkbc.com.au> on 2004/09/23 06:20:33 UTC
request-method action misunderstanding
Hi All,
The request-method action is appearing to fail in the following
example. I don't understand what is going on.
I have a matcher:
<map:match pattern="app/model/form.html">
<map:act type="auth-protect">
<map:parameter name="handler" value="auth-handler"/>
<map:select type="request-method">
<map:when test="GET">
<map:call function="flowSwitch"/>
</map:when>
<map:when test="POST">
<map:call continuation="{request-param:continuation-id}"/>
</map:when>
</map:select>
</map:act>
<map:redirect-to uri="public/home/noAuthorisation.html"/>
</map:match>
but when the request comes in I get: (from logs with bits removed and a
highlighted "+null" - does anyone know what that is?)
Date: Thu Sep 23 13:25:23 EST 2004 (1095909923119)
Message: BEGIN act
resolver=org.apache.cocoon.environment.http.HttpEnvironment@8f85d4,
objectModel={org.apache.cocoon.components.CocoonComponentManager=org.apa
che.cocoon.components.EnvironmentDescription@9b26b6,
httpservletcontext=org.mortbay.jetty.servlet.ServletHandler$Context@1b2f
47,
source-
resolver=org.apache.cocoon.environment.http.HttpEnvironment@8f85d4,
context=org.apache.cocoon.environment.http.HttpContext@bce693,
httprequest=+/app/model/form.html+null
POST
/app/model/form.html?continuation-
id=0a238264606c55174666808f7727632b3b1a6419 HTTP/1.1
Host: bigdog.local:8888
Connection: close
Referer: http://bigdog.local:8888/app/model/form.html
Date: Thu Sep 23 13:25:23 EST 2004 (1095909923123)
Current Sitemap Parameters:
LEVEL 2
PARAM: 'handler' VALUE: 'auth-handler'
PARAM: 'ID' VALUE: '1'
LEVEL 1
PARAM: '../0' VALUE: 'app/model/form.html'
Date: Thu Sep 23 13:25:23 EST 2004 (1095909923230)
Message: WK: Just Created New Continuation
256c796f7862502e2525250a614e202e213d1e68
Doesn't this mean that the action tested true to the "GET" match and
it's run my flow? how is this possible?
Thanks in advance.
Phil
PS. For sanity I checked the request coming in (log follows). The
continuation id is present and correct. What have I done wrong?
Date: Thu Sep 23 13:25:23 EST 2004 (1095909923084)
REQUEST: /app/model/form.html
REQUEST SESSION ID: 23qq780r0rbkm
METHOD: POST
CONTENT LENGTH: 941
PROTOCOL: HTTP/1.1
SCHEME: http
AUTH TYPE: null
CURRENT ACTIVE REQUESTS: 1
REQUEST PARAMETERS:
PARAM: 'kriEntryDue615' VALUES: '[]'
PARAM: 'kriEntryDue607' VALUES: '[]'
PARAM: 'kriEntryDue618' VALUES: '[]'
PARAM: 'kriEntryDue581' VALUES: '[]'
PARAM: 'kriEntryDue629' VALUES: '[]'
PARAM: 'kriEntryDue606' VALUES: '[]'
PARAM: 'kriEntryDue608' VALUES: '[]'
PARAM: 'kriEntryDue580' VALUES: '[]'
PARAM: 'kriEntryDue599' VALUES: '[]'
PARAM: 'kriEntryDue620' VALUES: '[]'
PARAM: 'kriEntryDue613' VALUES: '[]'
PARAM: 'kriEntryDue605' VALUES: '[]'
PARAM: 'kriEntryDue597' VALUES: '[]'
PARAM: 'kriEntryDue602' VALUES: '[]'
PARAM: 'continuation-id' VALUES:
'[0a238264606c55174666808f7727632b3b1a6419]'
PARAM: 'kriEntryDue585' VALUES: '[]'
PARAM: 'kriEntryDue596' VALUES: '[]'
PARAM: 'kriEntryDue612' VALUES: '[]'
PARAM: 'tab-state' VALUES: '[0]'
PARAM: 'forms_submit_id' VALUES: '[]'
PARAM: 'kriEntryDue626' VALUES: '[]'
PARAM: 'kriEntryDue595' VALUES: '[]'
PARAM: 'kriEntryDue614' VALUES: '[]'
PARAM: 'kriEntryDue625' VALUES: '[]'
PARAM: 'kriEntryDue588' VALUES: '[]'
PARAM: 'kriEntryDue617' VALUES: '[]'
PARAM: 'kriEntryDue616' VALUES: '[]'
PARAM: 'kriEntryForConfirmation600' VALUES: '[10]'
PARAM: 'kriEntryDue623' VALUES: '[]'
PARAM: 'kriEntryDue601' VALUES: '[]'
PARAM: 'kriEntryDue610' VALUES: '[]'
PARAM: 'kriEntryDue632' VALUES: '[]'
PARAM: 'kriEntryDue621' VALUES: '[]'
PARAM: 'kriEntryDue591' VALUES: '[]'
PARAM: 'kriEntryDue628' VALUES: '[]'
PARAM: 'kriEntryDue598' VALUES: '[]'
PARAM: 'kriEntryDue587' VALUES: '[]'
PARAM: 'kriEntryDue631' VALUES: '[]'
PARAM: 'kriEntryDue635' VALUES: '[]'
PARAM: 'kriEntryDue624' VALUES: '[]'
PARAM: 'kriEntryDue627' VALUES: '[]'
PARAM: 'kriEntryDue611' VALUES: '[]'
PARAM: 'kriEntryDue589' VALUES: '[]'
PARAM: 'kriEntryDue633' VALUES: '[]'
PARAM: 'kriEntryDue622' VALUES: '[]'
PARAM: 'kriEntryDue634' VALUES: '[]'
PARAM: 'kriEntryDue582' VALUES: '[123]'
PARAM: 'kriEntryDue604' VALUES: '[]'
PARAM: 'kriEntryDue584' VALUES: '[]'
PARAM: 'kriEntryDue592' VALUES: '[]'
PARAM: 'kriEntryDue630' VALUES: '[]'
PARAM: 'kriEntryDue603' VALUES: '[]'
PARAM: 'kriEntryDue619' VALUES: '[]'
PARAM: 'kriEntryDue609' VALUES: '[]'
PARAM: 'kriEntryDue590' VALUES: '[]'
PARAM: 'kriEntryDue594' VALUES: '[]'
PARAM: 'kriEntryDue583' VALUES: '[]'
PARAM: 'kriEntryDue586' VALUES: '[]'
PARAM: 'kriEntryDue593' VALUES: '[]'
HEADER PARAMETERS:
PARAM: 'Host' VALUES: '[bigdog.local:8888]'
PARAM: 'Connection' VALUES: '[close]'
PARAM: 'Referer' VALUES:
'[http://bigdog.local:8888/app/model/form.html]'
PARAM: 'User-Agent' VALUES: '[Mozilla/5.0 (Macintosh; U; PPC Mac OS X;
en) AppleWebKit/125.5 (KHTML], [like Gecko) Safari/125.9]'
PARAM: 'Content-Type' VALUES: '[application/x-www-form-urlencoded]'
PARAM: 'Content-Length' VALUES: '[941]'
SESSION ATTRIBUTES:
PARAM: 'dataContext' VALUE:
'org.objectstyle.cayenne.access.DataContext@404c85'
PARAM:
'org.apache.cocoon.webapps.authentication.components.DefaultAuthenticati
onManager/UserStatus' VALUE:
'org.apache.cocoon.webapps.authentication.user.UserState@a4cef0'
PARAM: 'FOM JavaScript GLOBAL SCOPE' VALUE:
'{file:/usr/local/development/ProtechtEnterprise/build/ant.build/
ProtechtEnterprise/ProtechtEnterprise.war/./
=org.apache.cocoon.components.flow.javascript.fom.FOM_JavaScriptInterpre
ter$ThreadScope@66c508}'
PARAM: 'cayenne.datacontext' VALUE:
'org.objectstyle.cayenne.access.DataContext@404c85'