cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Andre Juffer <>
Subject Re: Betr.: authentication-fw
Date Mon, 02 May 2005 12:42:19 GMT wrote:
> Andre Juffer <> wrote on 30-04-2005 14:52:29:
>>Peter and others,
>>concerning the authentication resource, I eventually found the following
>>in core.log:
>>DEBUG   (2005-04-30) 15:28.26:711   [core.authentication-manager]
>>(/sopas/do-login) http-8080-Processor25/PipelineAuthen
>>ticator: BEGIN isValidAuthenticationFragment fragment=<?xml
>>version="1.0" encoding="UTF-8"?>
> When the PipelineAuthenticator starts validating the XML fragment, it
> prints the entire fragment to the log. So at that point, your entire
> fragment is
>       <?xml version="1.0" encoding="UTF-8"?>
> and nothing else, no <authentication> etc.
> Perhaps this helps?

Actually, in the log file, there is an empty line just below
DEBUG   (2005-04-30) 15:28.26:711   [core.authentication-manager]
(/sopas/do-login) http-8080-Processor25/PipelineAuthen
ticator: BEGIN isValidAuthenticationFragment fragment=<?xml
version="1.0" encoding="UTF-8"?>

While the authenticator definitly returns the correct response (see 
previous emails), the rest of the document is not available to the 
PipelineAuthenticator, it apparently just gets the first line. By 
looking at the source code of PipelineAuthenticator, I thought initially 
that the <?xml version="1.0" encoding="UTF-8"?> should not be there, 
just the XML itself, but this seems rubbish now.

I guess I somehow need to get rid of new lines characters or spaces or 
whatsoever in the returned XML document, so that the 
PipelineAuthenticator sees one line only. Maybe that is the solution to 
this. So, instead of

<?xml version="1.0" encoding="UTF-8"?>

I would need to generate

<?xml version="1.0" encoding="UTF-8"?><authentication>...</authentication>

(this all is one line).

What do you think?


> Regards,
> Peter
> ---------------------------------------------------------------------
> To unsubscribe, e-mail:
> For additional commands, e-mail:

Andre H. Juffer              | Phone: +358-8-553 1161
The Biocenter and            | Fax: +358-8-553-1141
     the Dep. of Biochemistry | Email:
University of Oulu, Finland  | WWW:

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message