MAConditionError opens a debugger

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

MAConditionError opens a debugger

Romain Verduci-2
Hi,

I have a problem with my seaside application using MAConditionError. It's suppose to display a message error and in my case it opens a debugger.

Code with MAConditionError :
MAConditionError description: self description signal: 'Invalid name or password.'.

I don't understand why it does this.

To simplify the explanations and reproduce the bug, you can:
- download my image on: http://demo.ovh.com/fr/466c8bec0e28467ab3d473647833e0e8/
- copy the service/ dir on your root dir (/)
- run the image
- go to localhost:8080/sh
- try to login with a fake name

And then the MAConditionError opens a debugger when there is an error in login.

Thanks

Romain




Reply | Threaded
Open this post in threaded view
|

Re: MAConditionError opens a debugger

laurent laffont
Romain I've looked at it.

The problem is that SeasideHosting (thus SmallHarbour :) is rather old and Magritte seems to be used in an obsolete way. So the MAConditionError is not catch anymore by (removed in Seaside 3) MAValidationDecoration>>processChildCallbacks:

So I put an ugly hack in SHLoginComponent waiting for rewriting it the right way (but not now too tired).

Laurent.

On Fri, Aug 12, 2011 at 10:16 AM, Romain Verduci <[hidden email]> wrote:
Hi,

I have a problem with my seaside application using MAConditionError. It's suppose to display a message error and in my case it opens a debugger.

Code with MAConditionError :
MAConditionError description: self description signal: 'Invalid name or password.'.

I don't understand why it does this.

To simplify the explanations and reproduce the bug, you can:
- download my image on: http://demo.ovh.com/fr/466c8bec0e28467ab3d473647833e0e8/
- copy the service/ dir on your root dir (/)
- run the image
- go to localhost:8080/sh
- try to login with a fake name

And then the MAConditionError opens a debugger when there is an error in login.

Thanks

Romain