[EMAIL PROTECTED] wrote:




Andre Juffer <[EMAIL PROTECTED]> 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"?>
<authentication>
...
</authentication>

I would need to generate

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

(this all is one line).

What do you think?



Thanks,
Andre


Regards,
Peter


--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]



--
Andre H. Juffer              | Phone: +358-8-553 1161
The Biocenter and            | Fax: +358-8-553-1141
    the Dep. of Biochemistry | Email: [EMAIL PROTECTED]
University of Oulu, Finland  | WWW: www.biochem.oulu.fi/Biocomputing/

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Reply via email to