You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@cocoon.apache.org by ilfrin <il...@box43.pl> on 2003/01/25 19:07:22 UTC

sunRise login error rediect - doesn't work always

Hi
  
  I'm experiencing a problem concerning the sunRise login action.
  the sitemap fragment looks like this:

<map:match pattern="einf-login">
           <map:act type="sunRise-login">
                    <map:parameter name="handler" value="Einformatyka"/>
                    <map:parameter name="parameter_name" value="request:name"/>
                    <map:parameter name="parameter_password" value="request:password"/>
                    <map:act type="request">
                    <map:parameter name="parameters" value="true"/>
                                   <map:redirect-to uri="{resource}"/>
                    </map:act>
           </map:act>
           <map:redirect-to uri="logingError"/>
</map:match>

the problem is that this thing works on one machine and doesn't work
on some other one (it works on the development host one but wills not to
cooperate on the main server), it does log in but the problem is when
you pass a wrog password it throws a NullPointerException it doesn't
redirect.

I repeat the same code works on one machine and doesn't work on an
other one, the two machines have the same cocoon and tomcat.

Is there any idea what to search for, where is the problem and how to
get it to work ? I think this question is mainly to you Carsten :)
should I try wrapping the contents of the math with the sunRise-auth
action ??

Thanks a lot and thanks for your last hint Carsten, it worked of
course :)

-- 
 yours,
 ilfrin                          mailto:ilfrin@box43.pl



---------------------------------------------------------------------
Please check that your question  has not already been answered in the
FAQ before posting.     <http://xml.apache.org/cocoon/faq/index.html>

To unsubscribe, e-mail:     <co...@xml.apache.org>
For additional commands, e-mail:   <co...@xml.apache.org>


Re[2]: sunRise login error rediect - doesn't work always

Posted by ilfrin <il...@box43.pl>.
Hi Carsten,

CZ> Which version of cocoon are you using?

2.0.4

CZ> The only suggestion I could make is turning on debug logging and have
CZ> a look at the logs what is exactly happening (Seeing how far everything
CZ> comes and where the exception excatly occurs.)

I'll try that, it'll take some time cause I have unlimited access only
to the production servers and the problem occurs on a machine that
holds the official website but I'll do it sooner or later

anyway thanks, if I get any results I'll be in touch

-- 
Bye,
 ilfrin                            mailto:ilfrin@box43.pl



---------------------------------------------------------------------
Please check that your question  has not already been answered in the
FAQ before posting.     <http://xml.apache.org/cocoon/faq/index.html>

To unsubscribe, e-mail:     <co...@xml.apache.org>
For additional commands, e-mail:   <co...@xml.apache.org>


RE: sunRise login error rediect - doesn't work always

Posted by Carsten Ziegeler <cz...@s-und-n.de>.

> -----Original Message-----
> From: ilfrin [mailto:ilfrin@box43.pl]
> Sent: Saturday, January 25, 2003 7:07 PM
> To: cocoon-users@xml.apache.org
> Subject: sunRise login error rediect - doesn't work always
> 
> 
> Hi
>   
>   I'm experiencing a problem concerning the sunRise login action.
>   the sitemap fragment looks like this:
> 
> <map:match pattern="einf-login">
>            <map:act type="sunRise-login">
>                     <map:parameter name="handler" value="Einformatyka"/>
>                     <map:parameter name="parameter_name" 
> value="request:name"/>
>                     <map:parameter name="parameter_password" 
> value="request:password"/>
>                     <map:act type="request">
>                     <map:parameter name="parameters" value="true"/>
>                                    <map:redirect-to uri="{resource}"/>
>                     </map:act>
>            </map:act>
>            <map:redirect-to uri="logingError"/>
> </map:match>
> 
> the problem is that this thing works on one machine and doesn't work
> on some other one (it works on the development host one but wills not to
> cooperate on the main server), it does log in but the problem is when
> you pass a wrog password it throws a NullPointerException it doesn't
> redirect.
> 
> I repeat the same code works on one machine and doesn't work on an
> other one, the two machines have the same cocoon and tomcat.
> 
> Is there any idea what to search for, where is the problem and how to
> get it to work ? I think this question is mainly to you Carsten :)
> should I try wrapping the contents of the math with the sunRise-auth
> action ??
> 
Which version of cocoon are you using?

The only suggestion I could make is turning on debug logging and have
a look at the logs what is exactly happening (Seeing how far everything
comes and where the exception excatly occurs.)

Carsten 

Carsten Ziegeler 
Open Source Group, S&N AG


---------------------------------------------------------------------
Please check that your question  has not already been answered in the
FAQ before posting.     <http://xml.apache.org/cocoon/faq/index.html>

To unsubscribe, e-mail:     <co...@xml.apache.org>
For additional commands, e-mail:   <co...@xml.apache.org>