You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@ranger.apache.org by "Pradeep Agrawal (JIRA)" <ji...@apache.org> on 2016/05/20 14:29:12 UTC

[jira] [Updated] (RANGER-456) Audit page shows 'Page not found (404)' after renaming a service (repository)

     [ https://issues.apache.org/jira/browse/RANGER-456?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Pradeep Agrawal updated RANGER-456:
-----------------------------------
    Assignee:     (was: Pradeep Agrawal)

> Audit page shows 'Page not found (404)' after renaming a service (repository)
> -----------------------------------------------------------------------------
>
>                 Key: RANGER-456
>                 URL: https://issues.apache.org/jira/browse/RANGER-456
>             Project: Ranger
>          Issue Type: Bug
>          Components: admin
>    Affects Versions: 0.5.0
>            Reporter: Madhan Neethiraj
>
> 1. Create a service, say in HDFS, with name 'hadoop-test'
> 2. Configure the component, i.e. namenode, with Ranger authorization to get the policies from 'hadoop-test'
> 3. Let the component generate few audit logs. Verify that the audit page lists the generated audit logs.
> 4. Rename the repository, to say 'hadoop-stage'
> 5. Now visit the audit page; it should show 'Page not found (404)' error - instead of listing the audit logs that exists in the audit store.
> Ranger Admin log file, xa_portal.log, shows the following error:
> 2015-05-05 20:56:43,765 [http-bio-6080-exec-8] INFO  org.apache.ranger.common.RESTErrorUtil (RESTErrorUtil.java:323) - Request failed. SessionId=37, loginId=admin, logMessage=Not found
> javax.ws.rs.WebApplicationException
>         at org.apache.ranger.common.RESTErrorUtil.createRESTException(RESTErrorUtil.java:313)
>         at org.apache.ranger.rest.ServiceREST.getServiceByName(ServiceREST.java:448)
>         at org.apache.ranger.rest.ServiceREST$$FastClassByCGLIB$$92dab672.invoke(<generated>)
>         at net.sf.cglib.proxy.MethodProxy.invoke(MethodProxy.java:191)
>         at org.springframework.aop.framework.Cglib2AopProxy$CglibMethodInvocation.invokeJoinpoint(Cglib2AopProxy.java:689)
>         at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:150)
>         at org.springframework.transaction.interceptor.TransactionInterceptor.invoke(TransactionInterceptor.java:110)
>         at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
>         at org.springframework.aop.framework.Cglib2AopProxy$DynamicAdvisedInterceptor.intercept(Cglib2AopProxy.java:622)
>         at org.apache.ranger.rest.ServiceREST$$EnhancerByCGLIB$$79b4e176.getServiceByName(<generated>)
>         at sun.reflect.GeneratedMethodAccessor69.invoke(Unknown Source)
>         at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
>         at java.lang.reflect.Method.invoke(Method.java:606)
> Audit rendering should not depend on existence of the service/repository. Please review and update to fix this issue.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)