> > org.apache.excalibur.source.SourceException: The attribute:
> > authentication/authentication/data is empty
> >
> >
> > <map:act type="auth-protect">
> > <map:parameter name="handler" value="auth-handler"/>
> > <map:generate
> > src="module:session-context:authentication/authentication/data" />
> > <map:serialize />
> > </map:act>
>
> If the element "data" is empty it cannot be used as generator input.
> Either use
> src="module:session-context:authentication/authentication" />
> and make sure this is always containing sth or try if you can circumvent
> this with <map:select type="resource-exists">
Same result:
The attribute: authentication/authentication is empty
With src="module:session-context:authentication" I also get:
The attribute: authentication is empty
I am sure I am authenticated because of the use of <map:act
type="auth-protect">.
Also, I get the right data with the following flowscript code:
var contextMan =
cocoon.getComponent(Packages.org.apache.cocoon.webapps.session.ContextManager.ROLE);
var authContext = contextMan.getContext("authentication");
if(authContext!=null) {
var userFrag = authContext.getXML("/authentication/ID");
var username =
Packages.org.apache.cocoon.xml.dom.DOMUtil.getValueOfNode(userFrag);
// Obtenemos la informacion de permisos de la sesión
var userData = authContext.getXML("/authentication/data/permisos");
var children = userData.getChildNodes();
... here children contains a non-zero-sized node list ... which means
that /authentication/data actually contains data.
So, I am completely puzzled. I really need to use the data as the
source for a pipeline, because I need to generate a page with its
relevant contents.
If that helps, I am using cocoon 2.1.7.
--
Antonio
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]