[prev in list] [next in list] [prev in thread] [next in thread] 

List:       xml-cocoon-users
Subject:    authentication fw: flowscript in authentication resource
From:       "Hugo Burm" <hugob () xs4all ! nl>
Date:       2003-05-31 10:20:42
[Download RAW message or body]

Hello

I am trying to use flowscript in the authentication resource of the
authentication framework.
authuser is my authentication resource. 

Part of sitemap:
 <!-- call flowscript -->
 <map:match pattern="authuser">
            <map:call function="auth"/>
 </map:match>
 <!-- called by sendPage -->
 <map:match pattern="userID">
            <map:generate src="userID.xml" />
            <map:serialize type = "xml" />
 </map:match>

This is the flowscript function:
function auth() {
  sendPage("userID", {"user" : "test"} );
 }
 
And this is the "userID" xml file called by sendPage:
<?xml version="1.0"?>
<authentication>
<ID>23</ID>
<data><name>hugob</name></data>
</authentication>

When I call the resource directly by appname/authuser, the sitemap matches
the authusr and the flowscript returns the content of the xml file as
expected.  When I use it as an authentication resource, I get a null pointer
exception.
This is from core.log:
	at
org.apache.cocoon.webapps.authentication.components.Authenticator.authentica
te(Authenticator.java:187)
	... 61 more
org.apache.cocoon.ProcessingException: Attempted to process incomplete
pipeline.
	at
org.apache.cocoon.components.source.impl.SitemapSource.init(SitemapSource.ja
va:377)

When I use userID as my authentication resource (and skip the flowscript
step), authentication works OK.

What is going wrong? Is it just impossible to use flowscript in this
resource?


["winmail.dat" (application/ms-tnef)]

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

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic