[Azure] Entitlements service calls from reindex API are failing
Description
The entitlements call during /reindex
API fail with NullPointerException
when entitlement URI is the pod name in deployment.yaml files. When the entire URL is hard-coded in deployment.yaml file, requests goes through successfully.
Exception
[{"severityLevel":"Error","parsedStack":[{"method":"java.io.Reader.","level":0,"line":78,"fileName":"Reader.java"},{"method":"java.io.InputStreamReader.","level":1,"line":72,"fileName":"InputStreamReader.java"},{"method":"org.opengroup.osdu.core.common.http.AbstractHttpClient.getBody","level":2,"line":72,"fileName":"AbstractHttpClient.java"},{"method":"org.opengroup.osdu.core.common.http.AbstractHttpClient.send","level":3,"line":53,"fileName":"AbstractHttpClient.java"},{"method":"org.opengroup.osdu.core.common.http.HttpClient.send","level":4,"line":25,"fileName":"HttpClient.java"},{"method":"org.opengroup.osdu.core.common.entitlements.EntitlementsService.getGroups","level":5,"line":73,"fileName":"EntitlementsService.java"},{"method":"org.opengroup.osdu.core.common.entitlements.AuthorizationServiceImpl.authorizeAny","level":6,"line":38,"fileName":"AuthorizationServiceImpl.java"},{"method":"org.opengroup.osdu.indexer.middleware.AuthorizationFilter.hasPermission","level":7,"line":27,"fileName":"AuthorizationFilter.java"},{"method":"org.opengroup.osdu.indexer.middleware.AuthorizationFilterFastClassBySpringCGLIB
585766ba.invoke","level":8,"line":-1,"fileName":""},{"method":"org.springframework.cglib.proxy.MethodProxy.invoke","level":9,"line":218,"fileName":"MethodProxy.java"},{"method":"org.springframework.aop.framework.CglibAopProxyCglibMethodInvocation.invokeJoinpoint","level":10,"line":752,"fileName":"CglibAopProxy.java"},{"method":"org.springframework.aop.framework.ReflectiveMethodInvocation.proceed","level":11,"line":163,"fileName":"ReflectiveMethodInvocation.java"},{"method":"org.springframework.aop.support.DelegatingIntroductionInterceptor.doProceed","level":12,"line":136,"fileName":"DelegatingIntroductionInterceptor.java"},{"method":"org.springframework.aop.support.DelegatingIntroductionInterceptor.invoke","level":13,"line":124,"fileName":"DelegatingIntroductionInterceptor.java"},{"method":"org.springframework.aop.framework.ReflectiveMethodInvocation.proceed","level":14,"line":186,"fileName":"ReflectiveMethodInvocation.java"},{"method":"org.springframework.aop.framework.CglibAopProxy
DynamicAdvisedInterceptor.intercept","level":15,"line":691,"fileName":"CglibAopProxy.java"},{"method":"org.opengroup.osdu.indexer.middleware.AuthorizationFilterEnhancerBySpringCGLIB
f6517c29.hasPermission","level":16,"line":-1,"fileName":""},{"method":"sun.reflect.NativeMethodAccessorImpl.invoke","level":18,"line":62,"fileName":"NativeMethodAccessorImpl.java"},{"method":"sun.reflect.DelegatingMethodAccessorImpl.invoke","level":19,"line":43,"fileName":"DelegatingMethodAccessorImpl.java"},{"method":"java.lang.reflect.Method.invoke","level":20,"line":498,"fileName":"Method.java"},{"method":"org.springframework.expression.spel.support.ReflectiveMethodExecutor.execute","level":21,"line":130,"fileName":"ReflectiveMethodExecutor.java"},{"method":"org.springframework.expression.spel.ast.MethodReference.getValueInternal","level":22,"line":138,"fileName":"MethodReference.java"},{"method":"org.springframework.expression.spel.ast.MethodReference.access000","level":23,"line":54,"fileName":"MethodReference.java"},{"method":"org.springframework.expression.spel.ast.MethodReference
MethodValueRef.getValue","level":24,"line":391,"fileName":"MethodReference.java"},{"method":"org.springframework.expression.spel.ast.CompoundExpression.getValueInternal","level":25,"line":90,"fileName":"CompoundExpression.java"},{"method":"org.springframework.expression.spel.ast.SpelNodeImpl.getTypedValue","level":26,"line":114,"fileName":"SpelNodeImpl.java"},{"method":"org.springframework.expression.spel.standard.SpelExpression.getValue","level":27,"line":308,"fileName":"SpelExpression.java"},{"method":"org.springframework.security.access.expression.ExpressionUtils.evaluateAsBoolean","level":28,"line":26,"fileName":"ExpressionUtils.java"},{"method":"org.springframework.security.access.expression.method.ExpressionBasedPreInvocationAdvice.before","level":29,"line":59,"fileName":"ExpressionBasedPreInvocationAdvice.java"},{"method":"org.springframework.security.access.prepost.PreInvocationAuthorizationAdviceVoter.vote","level":30,"line":72,"fileName":"PreInvocationAuthorizationAdviceVoter.java"},{"method":"org.springframework.security.access.prepost.PreInvocationAuthorizationAdviceVoter.vote","level":31,"line":40,"fileName":"PreInvocationAuthorizationAdviceVoter.java"},{"method":"org.springframework.security.access.vote.AffirmativeBased.decide","level":32,"line":63,"fileName":"AffirmativeBased.java"},{"method":"org.springframework.security.access.intercept.AbstractSecurityInterceptor.beforeInvocation","level":33,"line":233,"fileName":"AbstractSecurityInterceptor.java"},{"method":"org.springframework.security.access.intercept.aopalliance.MethodSecurityInterceptor.invoke","level":34,"line":65,"fileName":"MethodSecurityInterceptor.java"},{"method":"org.springframework.aop.framework.ReflectiveMethodInvocation.proceed","level":35,"line":186,"fileName":"ReflectiveMethodInvocation.java"},{"method":"org.springframework.aop.framework.CglibAopProxy$DynamicAdvisedInterceptor.intercept","level":36,"line":691,"fileName":"CglibAopProxy.java"},{"method":"org.opengroup.osdu.indexer.api.ReindexApiEnhancerBySpringCGLIB
87095a0c.reindex","level":37,"line":-1,"fileName":""},{"method":"org.opengroup.osdu.indexer.api.ReindexApiFastClassBySpringCGLIB
8edc5574.invoke","level":38,"line":-1,"fileName":""},{"method":"org.springframework.cglib.proxy.MethodProxy.invoke","level":39,"line":218,"fileName":"MethodProxy.java"},{"method":"org.springframework.aop.framework.CglibAopProxyCglibMethodInvocation.invokeJoinpoint","level":40,"line":752,"fileName":"CglibAopProxy.java"},{"method":"org.springframework.aop.framework.ReflectiveMethodInvocation.proceed","level":41,"line":163,"fileName":"ReflectiveMethodInvocation.java"},{"method":"org.springframework.aop.support.DelegatingIntroductionInterceptor.doProceed","level":42,"line":136,"fileName":"DelegatingIntroductionInterceptor.java"},{"method":"org.springframework.aop.support.DelegatingIntroductionInterceptor.invoke","level":43,"line":124,"fileName":"DelegatingIntroductionInterceptor.java"},{"method":"org.springframework.aop.framework.ReflectiveMethodInvocation.proceed","level":44,"line":186,"fileName":"ReflectiveMethodInvocation.java"},{"method":"org.springframework.aop.framework.CglibAopProxy
DynamicAdvisedInterceptor.intercept","level":45,"line":691,"fileName":"CglibAopProxy.java"},{"method":"org.opengroup.osdu.indexer.api.ReindexApiEnhancerBySpringCGLIB
9b5b5d63.reindex","level":46,"line":-1,"fileName":""},{"method":"sun.reflect.NativeMethodAccessorImpl.invoke","level":48,"line":62,"fileName":"NativeMethodAccessorImpl.java"},{"method":"sun.reflect.DelegatingMethodAccessorImpl.invoke","level":49,"line":43,"fileName":"DelegatingMethodAccessorImpl.java"},{"method":"java.lang.reflect.Method.invoke","level":50,"line":498,"fileName":"Method.java"},{"method":"org.springframework.web.method.support.InvocableHandlerMethod.doInvoke","level":51,"line":190,"fileName":"InvocableHandlerMethod.java"},{"method":"org.springframework.web.method.support.InvocableHandlerMethod.invokeForRequest","level":52,"line":138,"fileName":"InvocableHandlerMethod.java"},{"method":"org.springframework.web.servlet.mvc.method.annotation.ServletInvocableHandlerMethod.invokeAndHandle","level":53,"line":105,"fileName":"ServletInvocableHandlerMethod.java"},{"method":"org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerAdapter.invokeHandlerMethod","level":54,"line":892,"fileName":"RequestMappingHandlerAdapter.java"},{"method":"org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerAdapter.handleInternal","level":55,"line":797,"fileName":"RequestMappingHandlerAdapter.java"},{"method":"org.springframework.web.servlet.mvc.method.AbstractHandlerMethodAdapter.handle","level":56,"line":87,"fileName":"AbstractHandlerMethodAdapter.java"},{"method":"org.springframework.web.servlet.DispatcherServlet.doDispatch","level":57,"line":1040,"fileName":"DispatcherServlet.java"},{"method":"org.springframework.web.servlet.DispatcherServlet.doService","level":58,"line":943,"fileName":"DispatcherServlet.java"},{"method":"org.springframework.web.servlet.FrameworkServlet.processRequest","level":59,"line":1006,"fileName":"FrameworkServlet.java"},{"method":"org.springframework.web.servlet.FrameworkServlet.doPost","level":60,"line":909,"fileName":"FrameworkServlet.java"},{"method":"javax.servlet.http.HttpServlet.service","level":61,"line":652,"fileName":"HttpServlet.java"},{"method":"org.springframework.web.servlet.FrameworkServlet.service","level":62,"line":883,"fileName":"FrameworkServlet.java"},{"method":"javax.servlet.http.HttpServlet.service","level":63,"line":733,"fileName":"HttpServlet.java"},{"method":"org.apache.catalina.core.ApplicationFilterChain.internalDoFilter","level":64,"line":231,"fileName":"ApplicationFilterChain.java"},{"method":"org.apache.catalina.core.ApplicationFilterChain.doFilter","level":65,"line":166,"fileName":"ApplicationFilterChain.java"},{"method":"org.apache.tomcat.websocket.server.WsFilter.doFilter","level":66,"line":53,"fileName":"WsFilter.java"},{"method":"org.apache.catalina.core.ApplicationFilterChain.internalDoFilter","level":67,"line":193,"fileName":"ApplicationFilterChain.java"},{"method":"org.apache.catalina.core.ApplicationFilterChain.doFilter","level":68,"line":166,"fileName":"ApplicationFilterChain.java"},{"method":"org.opengroup.osdu.azure.filters.TransactionLogFilter.doFilter","level":69,"line":67,"fileName":"TransactionLogFilter.java"},{"method":"org.apache.catalina.core.ApplicationFilterChain.internalDoFilter","level":70,"line":193,"fileName":"ApplicationFilterChain.java"},{"method":"org.apache.catalina.core.ApplicationFilterChain.doFilter","level":71,"line":166,"fileName":"ApplicationFilterChain.java"},{"method":"org.springframework.boot.actuate.web.trace.servlet.HttpTraceFilter.doFilterInternal","level":72,"line":88,"fileName":"HttpTraceFilter.java"},{"method":"org.springframework.web.filter.OncePerRequestFilter.doFilter","level":73,"line":119,"fileName":"OncePerRequestFilter.java"},{"method":"org.apache.catalina.core.ApplicationFilterChain.internalDoFilter","level":74,"line":193,"fileName":"ApplicationFilterChain.java"},{"method":"org.apache.catalina.core.ApplicationFilterChain.doFilter","level":75,"line":166,"fileName":"ApplicationFilterChain.java"},{"method":"org.springframework.security.web.FilterChainProxyVirtualFilterChain.doFilter","level":76,"line":320,"fileName":"FilterChainProxy.java"},{"method":"org.springframework.security.web.access.ExceptionTranslationFilter.doFilter","level":77,"line":119,"fileName":"ExceptionTranslationFilter.java"},{"method":"org.springframework.security.web.FilterChainProxy
VirtualFilterChain.doFilter","level":78,"line":334,"fileName":"FilterChainProxy.java"},{"method":"org.springframework.security.web.session.SessionManagementFilter.doFilter","level":79,"line":137,"fileName":"SessionManagementFilter.java"},{"method":"org.springframework.security.web.FilterChainProxyVirtualFilterChain.doFilter","level":80,"line":334,"fileName":"FilterChainProxy.java"},{"method":"org.springframework.security.web.authentication.AnonymousAuthenticationFilter.doFilter","level":81,"line":111,"fileName":"AnonymousAuthenticationFilter.java"},{"method":"org.springframework.security.web.FilterChainProxy
VirtualFilterChain.doFilter","level":82,"line":334,"fileName":"FilterChainProxy.java"},{"method":"org.springframework.security.web.servletapi.SecurityContextHolderAwareRequestFilter.doFilter","level":83,"line":170,"fileName":"SecurityContextHolderAwareRequestFilter.java"},{"method":"org.springframework.security.web.FilterChainProxyVirtualFilterChain.doFilter","level":84,"line":334,"fileName":"FilterChainProxy.java"},{"method":"org.springframework.security.web.savedrequest.RequestCacheAwareFilter.doFilter","level":85,"line":63,"fileName":"RequestCacheAwareFilter.java"},{"method":"org.springframework.security.web.FilterChainProxy
VirtualFilterChain.doFilter","level":86,"line":334,"fileName":"FilterChainProxy.java"},{"method":"org.springframework.security.web.authentication.logout.LogoutFilter.doFilter","level":87,"line":116,"fileName":"LogoutFilter.java"},{"method":"org.springframework.security.web.FilterChainProxyVirtualFilterChain.doFilter","level":88,"line":334,"fileName":"FilterChainProxy.java"},{"method":"org.springframework.security.web.header.HeaderWriterFilter.doFilterInternal","level":89,"line":74,"fileName":"HeaderWriterFilter.java"},{"method":"org.springframework.web.filter.OncePerRequestFilter.doFilter","level":90,"line":119,"fileName":"OncePerRequestFilter.java"},{"method":"org.springframework.security.web.FilterChainProxy
VirtualFilterChain.doFilter","level":91,"line":334,"fileName":"FilterChainProxy.java"},{"method":"org.springframework.security.web.context.SecurityContextPersistenceFilter.doFilter","level":92,"line":105,"fileName":"SecurityContextPersistenceFilter.java"},{"method":"org.springframework.security.web.FilterChainProxyVirtualFilterChain.doFilter","level":93,"line":334,"fileName":"FilterChainProxy.java"},{"method":"org.springframework.security.web.context.request.async.WebAsyncManagerIntegrationFilter.doFilterInternal","level":94,"line":56,"fileName":"WebAsyncManagerIntegrationFilter.java"},{"method":"org.springframework.web.filter.OncePerRequestFilter.doFilter","level":95,"line":119,"fileName":"OncePerRequestFilter.java"},{"method":"org.springframework.security.web.FilterChainProxy
VirtualFilterChain.doFilter","level":96,"line":334,"fileName":"FilterChainProxy.java"},{"method":"org.springframework.security.web.FilterChainProxy.doFilterInternal","level":97,"line":215,"fileName":"FilterChainProxy.java"},{"method":"org.springframework.security.web.FilterChainProxy.doFilter","level":98,"line":178,"fileName":"FilterChainProxy.java"},{"method":"org.springframework.web.filter.DelegatingFilterProxy.invokeDelegate","level":99,"line":358,"fileName":"DelegatingFilterProxy.java"},{"method":"org.springframework.web.filter.DelegatingFilterProxy.doFilter","level":100,"line":271,"fileName":"DelegatingFilterProxy.java"},{"method":"org.apache.catalina.core.ApplicationFilterChain.internalDoFilter","level":101,"line":193,"fileName":"ApplicationFilterChain.java"},{"method":"org.apache.catalina.core.ApplicationFilterChain.doFilter","level":102,"line":166,"fileName":"ApplicationFilterChain.java"},{"method":"org.opengroup.osdu.azure.filters.Slf4jMDCFilter.doFilter","level":103,"line":48,"fileName":"Slf4jMDCFilter.java"},{"method":"org.apache.catalina.core.ApplicationFilterChain.internalDoFilter","level":104,"line":193,"fileName":"ApplicationFilterChain.java"},{"method":"org.apache.catalina.core.ApplicationFilterChain.doFilter","level":105,"line":166,"fileName":"ApplicationFilterChain.java"},{"method":"org.springframework.web.filter.RequestContextFilter.doFilterInternal","level":106,"line":100,"fileName":"RequestContextFilter.java"},{"method":"org.springframework.web.filter.OncePerRequestFilter.doFilter","level":107,"line":119,"fileName":"OncePerRequestFilter.java"},{"method":"org.apache.catalina.core.ApplicationFilterChain.internalDoFilter","level":108,"line":193,"fileName":"ApplicationFilterChain.java"},{"method":"org.apache.catalina.core.ApplicationFilterChain.doFilter","level":109,"line":166,"fileName":"ApplicationFilterChain.java"},{"method":"org.springframework.web.filter.FormContentFilter.doFilterInternal","level":110,"line":93,"fileName":"FormContentFilter.java"},{"method":"org.springframework.web.filter.OncePerRequestFilter.doFilter","level":111,"line":119,"fileName":"OncePerRequestFilter.java"},{"method":"org.apache.catalina.core.ApplicationFilterChain.internalDoFilter","level":112,"line":193,"fileName":"ApplicationFilterChain.java"},{"method":"org.apache.catalina.core.ApplicationFilterChain.doFilter","level":113,"line":166,"fileName":"ApplicationFilterChain.java"},{"method":"org.springframework.web.filter.HiddenHttpMethodFilter.doFilterInternal","level":114,"line":94,"fileName":"HiddenHttpMethodFilter.java"},{"method":"org.springframework.web.filter.OncePerRequestFilter.doFilter","level":115,"line":119,"fileName":"OncePerRequestFilter.java"},{"method":"org.apache.catalina.core.ApplicationFilterChain.internalDoFilter","level":116,"line":193,"fileName":"ApplicationFilterChain.java"},{"method":"org.apache.catalina.core.ApplicationFilterChain.doFilter","level":117,"line":166,"fileName":"ApplicationFilterChain.java"},{"method":"org.springframework.boot.actuate.metrics.web.servlet.WebMvcMetricsFilter.filterAndRecordMetrics","level":118,"line":114,"fileName":"WebMvcMetricsFilter.java"},{"method":"org.springframework.boot.actuate.metrics.web.servlet.WebMvcMetricsFilter.doFilterInternal","level":119,"line":104,"fileName":"WebMvcMetricsFilter.java"},{"method":"org.springframework.web.filter.OncePerRequestFilter.doFilter","level":120,"line":119,"fileName":"OncePerRequestFilter.java"},{"method":"org.apache.catalina.core.ApplicationFilterChain.internalDoFilter","level":121,"line":193,"fileName":"ApplicationFilterChain.java"},{"method":"org.apache.catalina.core.ApplicationFilterChain.doFilter","level":122,"line":166,"fileName":"ApplicationFilterChain.java"},{"method":"org.springframework.web.filter.CharacterEncodingFilter.doFilterInternal","level":123,"line":201,"fileName":"CharacterEncodingFilter.java"},{"method":"org.springframework.web.filter.OncePerRequestFilter.doFilter","level":124,"line":119,"fileName":"OncePerRequestFilter.java"},{"method":"org.apache.catalina.core.ApplicationFilterChain.internalDoFilter","level":125,"line":193,"fileName":"ApplicationFilterChain.java"},{"method":"org.apache.catalina.core.ApplicationFilterChain.doFilter","level":126,"line":166,"fileName":"ApplicationFilterChain.java"},{"method":"com.microsoft.applicationinsights.web.internal.WebRequestTrackingFilter.doFilter","level":127,"line":143,"fileName":"WebRequestTrackingFilter.java"},{"method":"org.apache.catalina.core.ApplicationFilterChain.internalDoFilter","level":128,"line":193,"fileName":"ApplicationFilterChain.java"},{"method":"org.apache.catalina.core.ApplicationFilterChain.doFilter","level":129,"line":166,"fileName":"ApplicationFilterChain.java"},{"method":"org.apache.catalina.core.StandardWrapperValve.invoke","level":130,"line":202,"fileName":"StandardWrapperValve.java"},{"method":"org.apache.catalina.core.StandardContextValve.invoke","level":131,"line":96,"fileName":"StandardContextValve.java"},{"method":"org.apache.catalina.authenticator.AuthenticatorBase.invoke","level":132,"line":541,"fileName":"AuthenticatorBase.java"},{"method":"org.apache.catalina.core.StandardHostValve.invoke","level":133,"line":139,"fileName":"StandardHostValve.java"},{"method":"org.apache.catalina.valves.ErrorReportValve.invoke","level":134,"line":92,"fileName":"ErrorReportValve.java"},{"method":"org.apache.catalina.core.StandardEngineValve.invoke","level":135,"line":74,"fileName":"StandardEngineValve.java"},{"method":"org.apache.catalina.connector.CoyoteAdapter.service","level":136,"line":343,"fileName":"CoyoteAdapter.java"},{"method":"org.apache.coyote.http11.Http11Processor.service","level":137,"line":373,"fileName":"Http11Processor.java"},{"method":"org.apache.coyote.AbstractProcessorLight.process","level":138,"line":65,"fileName":"AbstractProcessorLight.java"},{"method":"org.apache.coyote.AbstractProtocolConnectionHandler.process","level":139,"line":868,"fileName":"AbstractProtocol.java"},{"method":"org.apache.tomcat.util.net.NioEndpoint
SocketProcessor.doRun","level":140,"line":1589,"fileName":"NioEndpoint.java"},{"method":"org.apache.tomcat.util.net.SocketProcessorBase.run","level":141,"line":49,"fileName":"SocketProcessorBase.java"},{"method":"java.util.concurrent.ThreadPoolExecutor.runWorker","level":142,"line":1149,"fileName":"ThreadPoolExecutor.java"},{"method":"java.util.concurrent.ThreadPoolExecutorWorker.run","level":143,"line":624,"fileName":"ThreadPoolExecutor.java"},{"method":"org.apache.tomcat.util.threads.TaskThread
WrappingRunnable.run","level":144,"line":61,"fileName":"TaskThread.java"},{"method":"java.lang.Thread.run","level":145,"line":748,"fileName":"Thread.java"}],"outerId":"0","message":"java.lang.NullPointerException","type":"java.lang.NullPointerException","id":"1155353803"}]