You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@archiva.apache.org by "Stallard,David" <st...@oclc.org> on 2013/06/26 19:08:13 UTC

Changing password results in 500 error

When we try to change a user's password in Archiva 1.3.5, we get a 500 page and the password isn't changed.  If I google on this I can find many others running into the same issue, going several years back, but I haven't been able to find a good solution.  I even found the following jira from 2009 (Archiva 1.2), which is still listed as Unresolved.  Any idea how we can get past this?

https://jira.codehaus.org/browse/MRM-1187

Below is the top of the stack trace.

Thanks,
David


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:422)
        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)
        org.springframework.web.filter.CharacterEncodingFilter.doFilterInternal(CharacterEncodingFilter.java:96)
        org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:76)
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:344)
        org.codehaus.plexus.redback.users.jdo.JdoUserManager.updateUser(JdoUserManager.java:374)
        org.codehaus.plexus.redback.users.cached.CachedUserManager.updateUser(CachedUserManager.java:235)
        org.codehaus.plexus.redback.users.configurable.ConfigurableUserManager.updateUser(ConfigurableUserManager.java:180)
        org.codehaus.plexus.redback.struts2.action.admin.UserEditAction.save(UserEditAction.java:301)
        org.codehaus.plexus.redback.struts2.action.admin.UserEditAction.confirmAdminPassword(UserEditAction.java:247)
                   (lots more like this)


Re: Changing password results in 500 error

Posted by Olivier Lamy <ol...@apache.org>.
Can you upgrade to last 1.4.x ?
Because I'm not sure we will fix issues for 1.3.x (except security issues)


2013/6/27 Stallard,David <st...@oclc.org>:
> When we try to change a user's password in Archiva 1.3.5, we get a 500 page and the password isn't changed.  If I google on this I can find many others running into the same issue, going several years back, but I haven't been able to find a good solution.  I even found the following jira from 2009 (Archiva 1.2), which is still listed as Unresolved.  Any idea how we can get past this?
>
> https://jira.codehaus.org/browse/MRM-1187
>
> Below is the top of the stack trace.
>
> Thanks,
> David
>
>
> 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:422)
>         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)
>         org.springframework.web.filter.CharacterEncodingFilter.doFilterInternal(CharacterEncodingFilter.java:96)
>         org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:76)
> 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:344)
>         org.codehaus.plexus.redback.users.jdo.JdoUserManager.updateUser(JdoUserManager.java:374)
>         org.codehaus.plexus.redback.users.cached.CachedUserManager.updateUser(CachedUserManager.java:235)
>         org.codehaus.plexus.redback.users.configurable.ConfigurableUserManager.updateUser(ConfigurableUserManager.java:180)
>         org.codehaus.plexus.redback.struts2.action.admin.UserEditAction.save(UserEditAction.java:301)
>         org.codehaus.plexus.redback.struts2.action.admin.UserEditAction.confirmAdminPassword(UserEditAction.java:247)
>                    (lots more like this)
>



-- 
Olivier Lamy
Ecetera: http://ecetera.com.au
http://twitter.com/olamy | http://linkedin.com/in/olamy