Problem with editProfile, user lost its roles

8 messages Options
Embed this post
Permalink
ramzi khlil

Problem with editProfile, user lost its roles

Reply Threaded More More options
Print post
Permalink
Hi All,
 
I'm using appfuse 1.9.4 springMVC.
I had a problem with editProfile. Here's the scenario:
1- Log in as admin
2- Select user from view users
3- Modify the profile to cause validation error
4- Insert right data and save
The user will lost its roles.
This happens only when error validation is occured.
I had the same problem with password, but I resolved it, it still remain the roles which are lost.
 
I tried to search on jira, but nothing related to this problem is found.
 
Ramzi
mraible

Re: Problem with editProfile, user lost its roles

Reply Threaded More More options
Print post
Permalink
Have you tried reproducing this on the demo?

http://demo.appfuse.org/appfuse-spring/login.jsp

On Fri, Oct 9, 2009 at 12:13 PM, ramzi khlil <[hidden email]> wrote:

> Hi All,
>
> I'm using appfuse 1.9.4 springMVC.
> I had a problem with editProfile. Here's the scenario:
> 1- Log in as admin
> 2- Select user from view users
> 3- Modify the profile to cause validation error
> 4- Insert right data and save
> The user will lost its roles.
> This happens only when error validation is occured.
> I had the same problem with password, but I resolved it, it still remain the
> roles which are lost.
>
> I tried to search on jira, but nothing related to this problem is found.
>
> Ramzi

---------------------------------------------------------------------
To unsubscribe, e-mail: [hidden email]
For additional commands, e-mail: [hidden email]

ramzi khlil

Re: Problem with editProfile, user lost its roles

Reply Threaded More More options
Print post
Permalink
Hi Matt,
 
I can not get the same problem on the demo.
The validation is client-side, so this doesn't change the user's information once the form is submitted.
Actually, the version I working with use server-side validation.
 
Ramzi

On Fri, Oct 9, 2009 at 12:14 PM, Matt Raible <[hidden email]> wrote:
Have you tried reproducing this on the demo?

http://demo.appfuse.org/appfuse-spring/login.jsp

On Fri, Oct 9, 2009 at 12:13 PM, ramzi khlil <[hidden email]> wrote:
> Hi All,
>
> I'm using appfuse 1.9.4 springMVC.
> I had a problem with editProfile. Here's the scenario:
> 1- Log in as admin
> 2- Select user from view users
> 3- Modify the profile to cause validation error
> 4- Insert right data and save
> The user will lost its roles.
> This happens only when error validation is occured.
> I had the same problem with password, but I resolved it, it still remain the
> roles which are lost.
>
> I tried to search on jira, but nothing related to this problem is found.
>
> Ramzi

---------------------------------------------------------------------
To unsubscribe, e-mail: [hidden email]
For additional commands, e-mail: [hidden email]


mraible

Re: Problem with editProfile, user lost its roles

Reply Threaded More More options
Print post
Permalink
You could try disabling JavaScript and see if you can reproduce. The
reason I asked you if you could reproduce it is because if you can't,
then it's fixed in 2.x. You might want to look at the classes in 2.x
to see how it's different.

https://appfuse.dev.java.net/svn/appfuse/trunk/web/spring/src/main/java/org/appfuse/webapp/controller/UserFormController.java?r=HEAD

Matt

On Fri, Oct 9, 2009 at 12:19 PM, ramzi khlil <[hidden email]> wrote:

> Hi Matt,
>
> I can not get the same problem on the demo.
> The validation is client-side, so this doesn't change the user's information
> once the form is submitted.
> Actually, the version I working with use server-side validation.
>
> Ramzi
>
> On Fri, Oct 9, 2009 at 12:14 PM, Matt Raible <[hidden email]> wrote:
>>
>> Have you tried reproducing this on the demo?
>>
>> http://demo.appfuse.org/appfuse-spring/login.jsp
>>
>> On Fri, Oct 9, 2009 at 12:13 PM, ramzi khlil <[hidden email]>
>> wrote:
>> > Hi All,
>> >
>> > I'm using appfuse 1.9.4 springMVC.
>> > I had a problem with editProfile. Here's the scenario:
>> > 1- Log in as admin
>> > 2- Select user from view users
>> > 3- Modify the profile to cause validation error
>> > 4- Insert right data and save
>> > The user will lost its roles.
>> > This happens only when error validation is occured.
>> > I had the same problem with password, but I resolved it, it still remain
>> > the
>> > roles which are lost.
>> >
>> > I tried to search on jira, but nothing related to this problem is found.
>> >
>> > Ramzi
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: [hidden email]
>> For additional commands, e-mail: [hidden email]
>>
>
>

---------------------------------------------------------------------
To unsubscribe, e-mail: [hidden email]
For additional commands, e-mail: [hidden email]

ramzi khlil

Re: Problem with editProfile, user lost its roles

Reply Threaded More More options
Print post
Permalink
Hi Matt,
 
You are right.
 
Can I use the new sources in version 1.9.4.
I need to define showPassword in TLD.
Where can I add this definition ?
 
Ramzi

On Fri, Oct 9, 2009 at 12:23 PM, Matt Raible <[hidden email]> wrote:
You could try disabling JavaScript and see if you can reproduce. The
reason I asked you if you could reproduce it is because if you can't,
then it's fixed in 2.x. You might want to look at the classes in 2.x
to see how it's different.

https://appfuse.dev.java.net/svn/appfuse/trunk/web/spring/src/main/java/org/appfuse/webapp/controller/UserFormController.java?r=HEAD

Matt

On Fri, Oct 9, 2009 at 12:19 PM, ramzi khlil <[hidden email]> wrote:
> Hi Matt,
>
> I can not get the same problem on the demo.
> The validation is client-side, so this doesn't change the user's information
> once the form is submitted.
> Actually, the version I working with use server-side validation.
>
> Ramzi
>
> On Fri, Oct 9, 2009 at 12:14 PM, Matt Raible <[hidden email]> wrote:
>>
>> Have you tried reproducing this on the demo?
>>
>> http://demo.appfuse.org/appfuse-spring/login.jsp
>>
>> On Fri, Oct 9, 2009 at 12:13 PM, ramzi khlil <[hidden email]>
>> wrote:
>> > Hi All,
>> >
>> > I'm using appfuse 1.9.4 springMVC.
>> > I had a problem with editProfile. Here's the scenario:
>> > 1- Log in as admin
>> > 2- Select user from view users
>> > 3- Modify the profile to cause validation error
>> > 4- Insert right data and save
>> > The user will lost its roles.
>> > This happens only when error validation is occured.
>> > I had the same problem with password, but I resolved it, it still remain
>> > the
>> > roles which are lost.
>> >
>> > I tried to search on jira, but nothing related to this problem is found.
>> >
>> > Ramzi
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: [hidden email]
>> For additional commands, e-mail: [hidden email]
>>
>
>

---------------------------------------------------------------------
To unsubscribe, e-mail: [hidden email]
For additional commands, e-mail: [hidden email]


mraible

Re: Problem with editProfile, user lost its roles

Reply Threaded More More options
Print post
Permalink
It's been awhile since I've been in the code and looked. I'd suggest
trying to figure it out and post back with any errors you get. I
believe the TLD is generated by XDoclet in 1.9.4. It doesn't have to
be though - you can take the generated file and add it back into your
source tree.

Matt

On Fri, Oct 9, 2009 at 1:12 PM, ramzi khlil <[hidden email]> wrote:

> Hi Matt,
>
> You are right.
>
> Can I use the new sources in version 1.9.4.
> I need to define showPassword in TLD.
> Where can I add this definition ?
>
> Ramzi
>
> On Fri, Oct 9, 2009 at 12:23 PM, Matt Raible <[hidden email]> wrote:
>>
>> You could try disabling JavaScript and see if you can reproduce. The
>> reason I asked you if you could reproduce it is because if you can't,
>> then it's fixed in 2.x. You might want to look at the classes in 2.x
>> to see how it's different.
>>
>>
>> https://appfuse.dev.java.net/svn/appfuse/trunk/web/spring/src/main/java/org/appfuse/webapp/controller/UserFormController.java?r=HEAD
>>
>> Matt
>>
>> On Fri, Oct 9, 2009 at 12:19 PM, ramzi khlil <[hidden email]>
>> wrote:
>> > Hi Matt,
>> >
>> > I can not get the same problem on the demo.
>> > The validation is client-side, so this doesn't change the user's
>> > information
>> > once the form is submitted.
>> > Actually, the version I working with use server-side validation.
>> >
>> > Ramzi
>> >
>> > On Fri, Oct 9, 2009 at 12:14 PM, Matt Raible <[hidden email]>
>> > wrote:
>> >>
>> >> Have you tried reproducing this on the demo?
>> >>
>> >> http://demo.appfuse.org/appfuse-spring/login.jsp
>> >>
>> >> On Fri, Oct 9, 2009 at 12:13 PM, ramzi khlil <[hidden email]>
>> >> wrote:
>> >> > Hi All,
>> >> >
>> >> > I'm using appfuse 1.9.4 springMVC.
>> >> > I had a problem with editProfile. Here's the scenario:
>> >> > 1- Log in as admin
>> >> > 2- Select user from view users
>> >> > 3- Modify the profile to cause validation error
>> >> > 4- Insert right data and save
>> >> > The user will lost its roles.
>> >> > This happens only when error validation is occured.
>> >> > I had the same problem with password, but I resolved it, it still
>> >> > remain
>> >> > the
>> >> > roles which are lost.
>> >> >
>> >> > I tried to search on jira, but nothing related to this problem is
>> >> > found.
>> >> >
>> >> > Ramzi
>> >>
>> >> ---------------------------------------------------------------------
>> >> To unsubscribe, e-mail: [hidden email]
>> >> For additional commands, e-mail: [hidden email]
>> >>
>> >
>> >
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: [hidden email]
>> For additional commands, e-mail: [hidden email]
>>
>
>

---------------------------------------------------------------------
To unsubscribe, e-mail: [hidden email]
For additional commands, e-mail: [hidden email]

ramzi khlil

Re: Problem with editProfile, user lost its roles

Reply Threaded More More options
Print post
Permalink
Hi,
 
How can I force appfuse to use client side validation ?
 
Ramzi

On Fri, Oct 9, 2009 at 2:34 PM, Matt Raible <[hidden email]> wrote:
It's been awhile since I've been in the code and looked. I'd suggest
trying to figure it out and post back with any errors you get. I
believe the TLD is generated by XDoclet in 1.9.4. It doesn't have to
be though - you can take the generated file and add it back into your
source tree.

Matt

On Fri, Oct 9, 2009 at 1:12 PM, ramzi khlil <[hidden email]> wrote:
> Hi Matt,
>
> You are right.
>
> Can I use the new sources in version 1.9.4.
> I need to define showPassword in TLD.
> Where can I add this definition ?
>
> Ramzi
>
> On Fri, Oct 9, 2009 at 12:23 PM, Matt Raible <[hidden email]> wrote:
>>
>> You could try disabling JavaScript and see if you can reproduce. The
>> reason I asked you if you could reproduce it is because if you can't,
>> then it's fixed in 2.x. You might want to look at the classes in 2.x
>> to see how it's different.
>>
>>
>> https://appfuse.dev.java.net/svn/appfuse/trunk/web/spring/src/main/java/org/appfuse/webapp/controller/UserFormController.java?r=HEAD
>>
>> Matt
>>
>> On Fri, Oct 9, 2009 at 12:19 PM, ramzi khlil <[hidden email]>
>> wrote:
>> > Hi Matt,
>> >
>> > I can not get the same problem on the demo.
>> > The validation is client-side, so this doesn't change the user's
>> > information
>> > once the form is submitted.
>> > Actually, the version I working with use server-side validation.
>> >
>> > Ramzi
>> >
>> > On Fri, Oct 9, 2009 at 12:14 PM, Matt Raible <[hidden email]>
>> > wrote:
>> >>
>> >> Have you tried reproducing this on the demo?
>> >>
>> >> http://demo.appfuse.org/appfuse-spring/login.jsp
>> >>
>> >> On Fri, Oct 9, 2009 at 12:13 PM, ramzi khlil <[hidden email]>
>> >> wrote:
>> >> > Hi All,
>> >> >
>> >> > I'm using appfuse 1.9.4 springMVC.
>> >> > I had a problem with editProfile. Here's the scenario:
>> >> > 1- Log in as admin
>> >> > 2- Select user from view users
>> >> > 3- Modify the profile to cause validation error
>> >> > 4- Insert right data and save
>> >> > The user will lost its roles.
>> >> > This happens only when error validation is occured.
>> >> > I had the same problem with password, but I resolved it, it still
>> >> > remain
>> >> > the
>> >> > roles which are lost.
>> >> >
>> >> > I tried to search on jira, but nothing related to this problem is
>> >> > found.
>> >> >
>> >> > Ramzi
>> >>
>> >> ---------------------------------------------------------------------
>> >> To unsubscribe, e-mail: [hidden email]
>> >> For additional commands, e-mail: [hidden email]
>> >>
>> >
>> >
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: [hidden email]
>> For additional commands, e-mail: [hidden email]
>>
>
>

---------------------------------------------------------------------
To unsubscribe, e-mail: [hidden email]
For additional commands, e-mail: [hidden email]


mraible

Re: Problem with editProfile, user lost its roles

Reply Threaded More More options
Print post
Permalink
You can't force users to turn on JavaScript, so you really can't
*force* client-side validation.

On Fri, Oct 9, 2009 at 2:49 PM, ramzi khlil <[hidden email]> wrote:

> Hi,
>
> How can I force appfuse to use client side validation ?
>
> Ramzi
>
> On Fri, Oct 9, 2009 at 2:34 PM, Matt Raible <[hidden email]> wrote:
>>
>> It's been awhile since I've been in the code and looked. I'd suggest
>> trying to figure it out and post back with any errors you get. I
>> believe the TLD is generated by XDoclet in 1.9.4. It doesn't have to
>> be though - you can take the generated file and add it back into your
>> source tree.
>>
>> Matt
>>
>> On Fri, Oct 9, 2009 at 1:12 PM, ramzi khlil <[hidden email]>
>> wrote:
>> > Hi Matt,
>> >
>> > You are right.
>> >
>> > Can I use the new sources in version 1.9.4.
>> > I need to define showPassword in TLD.
>> > Where can I add this definition ?
>> >
>> > Ramzi
>> >
>> > On Fri, Oct 9, 2009 at 12:23 PM, Matt Raible <[hidden email]>
>> > wrote:
>> >>
>> >> You could try disabling JavaScript and see if you can reproduce. The
>> >> reason I asked you if you could reproduce it is because if you can't,
>> >> then it's fixed in 2.x. You might want to look at the classes in 2.x
>> >> to see how it's different.
>> >>
>> >>
>> >>
>> >> https://appfuse.dev.java.net/svn/appfuse/trunk/web/spring/src/main/java/org/appfuse/webapp/controller/UserFormController.java?r=HEAD
>> >>
>> >> Matt
>> >>
>> >> On Fri, Oct 9, 2009 at 12:19 PM, ramzi khlil <[hidden email]>
>> >> wrote:
>> >> > Hi Matt,
>> >> >
>> >> > I can not get the same problem on the demo.
>> >> > The validation is client-side, so this doesn't change the user's
>> >> > information
>> >> > once the form is submitted.
>> >> > Actually, the version I working with use server-side validation.
>> >> >
>> >> > Ramzi
>> >> >
>> >> > On Fri, Oct 9, 2009 at 12:14 PM, Matt Raible <[hidden email]>
>> >> > wrote:
>> >> >>
>> >> >> Have you tried reproducing this on the demo?
>> >> >>
>> >> >> http://demo.appfuse.org/appfuse-spring/login.jsp
>> >> >>
>> >> >> On Fri, Oct 9, 2009 at 12:13 PM, ramzi khlil
>> >> >> <[hidden email]>
>> >> >> wrote:
>> >> >> > Hi All,
>> >> >> >
>> >> >> > I'm using appfuse 1.9.4 springMVC.
>> >> >> > I had a problem with editProfile. Here's the scenario:
>> >> >> > 1- Log in as admin
>> >> >> > 2- Select user from view users
>> >> >> > 3- Modify the profile to cause validation error
>> >> >> > 4- Insert right data and save
>> >> >> > The user will lost its roles.
>> >> >> > This happens only when error validation is occured.
>> >> >> > I had the same problem with password, but I resolved it, it still
>> >> >> > remain
>> >> >> > the
>> >> >> > roles which are lost.
>> >> >> >
>> >> >> > I tried to search on jira, but nothing related to this problem is
>> >> >> > found.
>> >> >> >
>> >> >> > Ramzi
>> >> >>
>> >> >>
>> >> >> ---------------------------------------------------------------------
>> >> >> To unsubscribe, e-mail: [hidden email]
>> >> >> For additional commands, e-mail: [hidden email]
>> >> >>
>> >> >
>> >> >
>> >>
>> >> ---------------------------------------------------------------------
>> >> To unsubscribe, e-mail: [hidden email]
>> >> For additional commands, e-mail: [hidden email]
>> >>
>> >
>> >
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: [hidden email]
>> For additional commands, e-mail: [hidden email]
>>
>
>

---------------------------------------------------------------------
To unsubscribe, e-mail: [hidden email]
For additional commands, e-mail: [hidden email]