changing password impossible using 1.2.2

View: New views
5 Messages — Rating Filter:   Alert me  

changing password impossible using 1.2.2

by Marc Lustig :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

We just upgraded to 1.2.2 and the user still cannot change his own password. The following exception occurs. Anbody knows how to fix this?
Is it database-schema related?

HTTP Status 500 -

type Exception report

message

description The server encountered an internal error () that prevented it from fulfilling this request.

exception

javax.servlet.ServletException: java.lang.IllegalArgumentException: fromIndex(0) > toIndex(-1)
        org.apache.struts2.dispatcher.Dispatcher.serviceAction(Dispatcher.java:515)
        org.apache.struts2.dispatcher.FilterDispatcher.doFilter(FilterDispatcher.java:419)
        com.opensymphony.module.sitemesh.filter.PageFilter.parsePage(PageFilter.java:118)
        com.opensymphony.module.sitemesh.filter.PageFilter.doFilter(PageFilter.java:52)
        org.apache.struts2.dispatcher.ActionContextCleanUp.doFilter(ActionContextCleanUp.java:99)

root cause

java.lang.IllegalArgumentException: fromIndex(0) > toIndex(-1)
        java.util.SubList.<init>(AbstractList.java:604)
        java.util.RandomAccessSubList.<init>(AbstractList.java:758)
        java.util.AbstractList.subList(AbstractList.java:468)
        org.codehaus.plexus.redback.policy.DefaultUserSecurityPolicy.extensionChangePassword(DefaultUserSecurityPolicy.java:338)
        org.codehaus.plexus.redback.users.jdo.JdoUserManager.updateUser(JdoUserManager.java:368)
        org.codehaus.plexus.redback.users.cached.CachedUserManager.updateUser(CachedUserManager.java:229)
        org.codehaus.plexus.redback.users.configurable.ConfigurableUserManager.updateUser(ConfigurableUserManager.java:174)
        org.codehaus.plexus.redback.struts2.action.PasswordAction.submit(PasswordAction.java:146)

Re: changing password impossible using 1.2.2

by Deng Ching-2 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hi Marc,

This is working fine for me. Were you using an existing Redback database?

Thanks,
Deng

On Wed, Sep 9, 2009 at 4:13 PM, Marc Lustig <ml@...> wrote:

>
> We just upgraded to 1.2.2 and the user still cannot change his own
> password.
> The following exception occurs. Anbody knows how to fix this?
> Is it database-schema related?
>
> HTTP Status 500 -
>
> type Exception report
>
> message
>
> description The server encountered an internal error () that prevented it
> from fulfilling this request.
>
> exception
>
> javax.servlet.ServletException: java.lang.IllegalArgumentException:
> fromIndex(0) > toIndex(-1)
>
>  org.apache.struts2.dispatcher.Dispatcher.serviceAction(Dispatcher.java:515)
>
>
> org.apache.struts2.dispatcher.FilterDispatcher.doFilter(FilterDispatcher.java:419)
>
>
> com.opensymphony.module.sitemesh.filter.PageFilter.parsePage(PageFilter.java:118)
>
>
> com.opensymphony.module.sitemesh.filter.PageFilter.doFilter(PageFilter.java:52)
>
>
> org.apache.struts2.dispatcher.ActionContextCleanUp.doFilter(ActionContextCleanUp.java:99)
>
> root cause
>
> java.lang.IllegalArgumentException: fromIndex(0) > toIndex(-1)
>        java.util.SubList.<init>(AbstractList.java:604)
>        java.util.RandomAccessSubList.<init>(AbstractList.java:758)
>        java.util.AbstractList.subList(AbstractList.java:468)
>
>
> org.codehaus.plexus.redback.policy.DefaultUserSecurityPolicy.extensionChangePassword(DefaultUserSecurityPolicy.java:338)
>
>
> org.codehaus.plexus.redback.users.jdo.JdoUserManager.updateUser(JdoUserManager.java:368)
>
>
> org.codehaus.plexus.redback.users.cached.CachedUserManager.updateUser(CachedUserManager.java:229)
>
>
> org.codehaus.plexus.redback.users.configurable.ConfigurableUserManager.updateUser(ConfigurableUserManager.java:174)
>
>
> org.codehaus.plexus.redback.struts2.action.PasswordAction.submit(PasswordAction.java:146)
>
> --
> View this message in context:
> http://www.nabble.com/changing-password-impossible-using-1.2.2-tp25360506p25360506.html
> Sent from the archiva-users mailing list archive at Nabble.com.
>
>

Re: changing password impossible using 1.2.2

by Deng Ching-2 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

This looks like a similar bug:
http://jira.codehaus.org/browse/MRM-1187

Is it the same scenario?

Thanks,
Deng

On Thu, Sep 10, 2009 at 11:06 AM, Deng Ching <oching@...> wrote:

> Hi Marc,
>
> This is working fine for me. Were you using an existing Redback database?
>
> Thanks,
> Deng
>
>
> On Wed, Sep 9, 2009 at 4:13 PM, Marc Lustig <ml@...> wrote:
>
>>
>> We just upgraded to 1.2.2 and the user still cannot change his own
>> password.
>> The following exception occurs. Anbody knows how to fix this?
>> Is it database-schema related?
>>
>> HTTP Status 500 -
>>
>> type Exception report
>>
>> message
>>
>> description The server encountered an internal error () that prevented it
>> from fulfilling this request.
>>
>> exception
>>
>> javax.servlet.ServletException: java.lang.IllegalArgumentException:
>> fromIndex(0) > toIndex(-1)
>>
>>  org.apache.struts2.dispatcher.Dispatcher.serviceAction(Dispatcher.java:515)
>>
>>
>> org.apache.struts2.dispatcher.FilterDispatcher.doFilter(FilterDispatcher.java:419)
>>
>>
>> com.opensymphony.module.sitemesh.filter.PageFilter.parsePage(PageFilter.java:118)
>>
>>
>> com.opensymphony.module.sitemesh.filter.PageFilter.doFilter(PageFilter.java:52)
>>
>>
>> org.apache.struts2.dispatcher.ActionContextCleanUp.doFilter(ActionContextCleanUp.java:99)
>>
>> root cause
>>
>> java.lang.IllegalArgumentException: fromIndex(0) > toIndex(-1)
>>        java.util.SubList.<init>(AbstractList.java:604)
>>        java.util.RandomAccessSubList.<init>(AbstractList.java:758)
>>        java.util.AbstractList.subList(AbstractList.java:468)
>>
>>
>> org.codehaus.plexus.redback.policy.DefaultUserSecurityPolicy.extensionChangePassword(DefaultUserSecurityPolicy.java:338)
>>
>>
>> org.codehaus.plexus.redback.users.jdo.JdoUserManager.updateUser(JdoUserManager.java:368)
>>
>>
>> org.codehaus.plexus.redback.users.cached.CachedUserManager.updateUser(CachedUserManager.java:229)
>>
>>
>> org.codehaus.plexus.redback.users.configurable.ConfigurableUserManager.updateUser(ConfigurableUserManager.java:174)
>>
>>
>> org.codehaus.plexus.redback.struts2.action.PasswordAction.submit(PasswordAction.java:146)
>>
>> --
>> View this message in context:
>> http://www.nabble.com/changing-password-impossible-using-1.2.2-tp25360506p25360506.html
>> Sent from the archiva-users mailing list archive at Nabble.com.
>>
>>
>

Re: changing password impossible using 1.2.2

by Marc Lustig :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Yes, we started about 18 months ago with Archiva 1.0.1 and upgraded when new releases where issued. If we are really the only one with this problem it might also be related to the fact we are using Oracle. We have the same trouble with our Continuum-instances, so probably it is related to Redback.
I will see if I can fix it in org.codehaus.plexus.redback.policy.DefaultUserSecurityPolicy.extensionChangePassword


Deng Ching-2 wrote:
Hi Marc,

This is working fine for me. Were you using an existing Redback database?

Thanks,
Deng

On Wed, Sep 9, 2009 at 4:13 PM, Marc Lustig <ml@marclustig.com> wrote:

>
> We just upgraded to 1.2.2 and the user still cannot change his own
> password.
> The following exception occurs. Anbody knows how to fix this?
> Is it database-schema related?
>
> HTTP Status 500 -
>
> type Exception report
>
> message
>
> description The server encountered an internal error () that prevented it
> from fulfilling this request.
>
> exception
>
> javax.servlet.ServletException: java.lang.IllegalArgumentException:
> fromIndex(0) > toIndex(-1)
>
>  org.apache.struts2.dispatcher.Dispatcher.serviceAction(Dispatcher.java:515)
>
>
> org.apache.struts2.dispatcher.FilterDispatcher.doFilter(FilterDispatcher.java:419)
>
>
> com.opensymphony.module.sitemesh.filter.PageFilter.parsePage(PageFilter.java:118)
>
>
> com.opensymphony.module.sitemesh.filter.PageFilter.doFilter(PageFilter.java:52)
>
>
> org.apache.struts2.dispatcher.ActionContextCleanUp.doFilter(ActionContextCleanUp.java:99)
>
> root cause
>
> java.lang.IllegalArgumentException: fromIndex(0) > toIndex(-1)
>        java.util.SubList.<init>(AbstractList.java:604)
>        java.util.RandomAccessSubList.<init>(AbstractList.java:758)
>        java.util.AbstractList.subList(AbstractList.java:468)
>
>
> org.codehaus.plexus.redback.policy.DefaultUserSecurityPolicy.extensionChangePassword(DefaultUserSecurityPolicy.java:338)
>
>
> org.codehaus.plexus.redback.users.jdo.JdoUserManager.updateUser(JdoUserManager.java:368)
>
>
> org.codehaus.plexus.redback.users.cached.CachedUserManager.updateUser(CachedUserManager.java:229)
>
>
> org.codehaus.plexus.redback.users.configurable.ConfigurableUserManager.updateUser(ConfigurableUserManager.java:174)
>
>
> org.codehaus.plexus.redback.struts2.action.PasswordAction.submit(PasswordAction.java:146)
>
> --
> View this message in context:
> http://www.nabble.com/changing-password-impossible-using-1.2.2-tp25360506p25360506.html
> Sent from the archiva-users mailing list archive at Nabble.com.
>
>

Re: changing password impossible using 1.2.2

by Marc Lustig :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

yeah, its the same error message and use-case.
I have fixed this by removing all the policy-code from DefaultUserSecurityPolicy (redback-policy.jar) that we do not use anyway. Sorry but I don't have time to provide a patch that keeps the existing logic.


Deng Ching-2 wrote:
This looks like a similar bug:
http://jira.codehaus.org/browse/MRM-1187

Is it the same scenario?

Thanks,
Deng

On Thu, Sep 10, 2009 at 11:06 AM, Deng Ching <oching@apache.org> wrote:

> Hi Marc,
>
> This is working fine for me. Were you using an existing Redback database?
>
> Thanks,
> Deng
>
>
> On Wed, Sep 9, 2009 at 4:13 PM, Marc Lustig <ml@marclustig.com> wrote:
>
>>
>> We just upgraded to 1.2.2 and the user still cannot change his own
>> password.
>> The following exception occurs. Anbody knows how to fix this?
>> Is it database-schema related?
>>
>> HTTP Status 500 -
>>
>> type Exception report
>>
>> message
>>
>> description The server encountered an internal error () that prevented it
>> from fulfilling this request.
>>
>> exception
>>
>> javax.servlet.ServletException: java.lang.IllegalArgumentException:
>> fromIndex(0) > toIndex(-1)
>>
>>  org.apache.struts2.dispatcher.Dispatcher.serviceAction(Dispatcher.java:515)
>>
>>
>> org.apache.struts2.dispatcher.FilterDispatcher.doFilter(FilterDispatcher.java:419)
>>
>>
>> com.opensymphony.module.sitemesh.filter.PageFilter.parsePage(PageFilter.java:118)
>>
>>
>> com.opensymphony.module.sitemesh.filter.PageFilter.doFilter(PageFilter.java:52)
>>
>>
>> org.apache.struts2.dispatcher.ActionContextCleanUp.doFilter(ActionContextCleanUp.java:99)
>>
>> root cause
>>
>> java.lang.IllegalArgumentException: fromIndex(0) > toIndex(-1)
>>        java.util.SubList.<init>(AbstractList.java:604)
>>        java.util.RandomAccessSubList.<init>(AbstractList.java:758)
>>        java.util.AbstractList.subList(AbstractList.java:468)
>>
>>
>> org.codehaus.plexus.redback.policy.DefaultUserSecurityPolicy.extensionChangePassword(DefaultUserSecurityPolicy.java:338)
>>
>>
>> org.codehaus.plexus.redback.users.jdo.JdoUserManager.updateUser(JdoUserManager.java:368)
>>
>>
>> org.codehaus.plexus.redback.users.cached.CachedUserManager.updateUser(CachedUserManager.java:229)
>>
>>
>> org.codehaus.plexus.redback.users.configurable.ConfigurableUserManager.updateUser(ConfigurableUserManager.java:174)
>>
>>
>> org.codehaus.plexus.redback.struts2.action.PasswordAction.submit(PasswordAction.java:146)
>>
>> --
>> View this message in context:
>> http://www.nabble.com/changing-password-impossible-using-1.2.2-tp25360506p25360506.html
>> Sent from the archiva-users mailing list archive at Nabble.com.
>>
>>
>