You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@archiva.apache.org by "Chris Anders (JIRA)" <ji...@codehaus.org> on 2008/08/26 05:55:26 UTC

[jira] Commented: (MRM-915) NPE with rss links

    [ http://jira.codehaus.org/browse/MRM-915?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=145983#action_145983 ] 

Chris Anders commented on MRM-915:
----------------------------------

i get a similar NPE after setting up AD (LDAP) authentication when a user who is yet to login clicks on browse or attempts a search.

Aug 26, 2008 2:21:02 AM org.apache.catalina.core.StandardWrapperValve invoke
SEVERE: Servlet.service() for servlet default threw exception
java.lang.NullPointerException
        at org.apache.maven.archiva.security.DefaultUserRepositories.getObservableRepositoryIds(DefaultUserRepositories.java:76)
        at org.apache.maven.archiva.web.action.BrowseAction.getObservableRepos(BrowseAction.java:131)
        at org.apache.maven.archiva.web.action.BrowseAction.browse(BrowseAction.java:65)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
        at java.lang.reflect.Method.invoke(Method.java:585)

in security.properties i have defined 
redback.default.guest=archiva

This user exists in our LDAP as i can click login and login with this archiva user credentials.

> NPE with rss links
> ------------------
>
>                 Key: MRM-915
>                 URL: http://jira.codehaus.org/browse/MRM-915
>             Project: Archiva
>          Issue Type: Bug
>          Components: Users/Security, web application
>    Affects Versions: 1.1.1
>            Reporter: Emmanuel Venisse
>            Assignee: Maria Odea Ching
>             Fix For: 1.1.2
>
>
> With LDAP, I get the following exception when I use the rss icon on the browse page:
> {noformat}
> java.lang.NullPointerException
> 	org.apache.maven.archiva.security.DefaultUserRepositories.getObservableRepositoryIds(DefaultUserRepositories.java:76)
> 	org.apache.maven.archiva.web.rss.RssFeedServlet.getObservableRepos(RssFeedServlet.java:305)
> 	org.apache.maven.archiva.web.rss.RssFeedServlet.isAllowed(RssFeedServlet.java:267)
> 	org.apache.maven.archiva.web.rss.RssFeedServlet.doGet(RssFeedServlet.java:124)
> 	javax.servlet.http.HttpServlet.service(HttpServlet.java:690)
> 	javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
> 	com.opensymphony.webwork.dispatcher.FilterDispatcher.doFilter(FilterDispatcher.java:189)
> 	com.opensymphony.module.sitemesh.filter.PageFilter.parsePage(PageFilter.java:118)
> 	com.opensymphony.module.sitemesh.filter.PageFilter.doFilter(PageFilter.java:52)
> 	com.opensymphony.webwork.dispatcher.ActionContextCleanUp.doFilter(ActionContextCleanUp.java:88)
> {noformat}
> My guest user have the global repository observer role but the login isn't 'guest' so securitySystem.getUserManager().findUser( principal ) return null
> Rss works fine if I use the repoId parameter on RssFessServlet instead of groupId/artifactId.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira