xinzhuxiansheng opened a new issue, #4206:
URL: https://github.com/apache/streampark/issues/4206

   ### Search before asking
   
   - [x] I had searched in the 
[issues](https://github.com/apache/streampark/issues?q=is%3Aissue+label%3A%22bug%22)
 and found no similar issues.
   
   
   ### Java Version
   
   jdk 1.8 
   
   ### Scala Version
   
   2.12.x
   
   ### StreamPark Version
   
   2.1.5
   
   ### Flink Version
   
   flink 1.15.3
   
   ### Deploy mode
   
   kubernetes-application
   
   ### What happened
   
   After starting the job, enter the job details and click the Jump to Flink 
WEB UI page button. The browser will open the page in a new window, but it will 
return 401 Unauthenticated
   
   Clicking multiple times will successfully enter the Flink WEB UI page, but 
most of the interfaces refreshed by the page return 401, resulting in the 
inability to view the Flink WEB UI.
   
   Because the job is a svc configured in NodePort mode, I successfully jumped 
to the Flink WEB UI using Node IP + Node Port, and everything works fine this 
way.
   
   
   启动完作业后,进入作业详情,点击 跳转到 Flink WEB UI 页面 按钮, 浏览器会再新的窗口打开页面,但是 会返回 401 
Unauthenticated
   
   多次点击会成功进入 Flink WEB UI 页面, 但是页面刷新的接口 大多数返回 401 ,导致 Flink WEB UI 无法查看。
   
   因为作业是 NodePort 方式配置的 svc,所以我使用 Node IP + Node Port 成功跳转到 Flink WEB 
UI,这种方式一切正常。
   
   
   我对 shiro 组件不太了解,有什么办法解决它呢!
   
   ### Error Exception
   
   ```log
   服务端异常 log
   at 
org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:117)
                                                                                
                  
       at 
io.undertow.servlet.core.ManagedFilter.doFilter(ManagedFilter.java:67)          
                                                                                
                             
       at 
io.undertow.servlet.handlers.FilterHandler$FilterChainImpl.doFilter(FilterHandler.java:131)
                                                                                
                  
       at 
org.springframework.boot.actuate.metrics.web.servlet.WebMvcMetricsFilter.doFilterInternal(WebMvcMetricsFilter.java:96)
                                                                       
       at 
org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:117)
                                                                                
                  
       at 
io.undertow.servlet.core.ManagedFilter.doFilter(ManagedFilter.java:67)          
                                                                                
                             
       at 
io.undertow.servlet.handlers.FilterHandler$FilterChainImpl.doFilter(FilterHandler.java:131)
                                                                                
                  
       at 
org.springframework.web.filter.CharacterEncodingFilter.doFilterInternal(CharacterEncodingFilter.java:201)
                                                                                
    
       at 
org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:117)
                                                                                
                  
       at 
io.undertow.servlet.core.ManagedFilter.doFilter(ManagedFilter.java:67)          
                                                                                
                             
       at 
io.undertow.servlet.handlers.FilterHandler$FilterChainImpl.doFilter(FilterHandler.java:131)
                                                                                
                  
       at 
io.undertow.servlet.handlers.FilterHandler.handleRequest(FilterHandler.java:84) 
                                                                                
                             
       at 
io.undertow.servlet.handlers.security.ServletSecurityRoleHandler.handleRequest(ServletSecurityRoleHandler.java:62)
                                                                           
       at 
io.undertow.servlet.handlers.ServletChain$1.handleRequest(ServletChain.java:68) 
                                                                                
                             
       at 
io.undertow.servlet.handlers.ServletDispatchingHandler.handleRequest(ServletDispatchingHandler.java:36)
                                                                                
      
       at 
io.undertow.servlet.handlers.RedirectDirHandler.handleRequest(RedirectDirHandler.java:68)
                                                                                
                    
       at 
io.undertow.servlet.handlers.security.SSLInformationAssociationHandler.handleRequest(SSLInformationAssociationHandler.java:117)
                                                              
       at 
io.undertow.servlet.handlers.security.ServletAuthenticationCallHandler.handleRequest(ServletAuthenticationCallHandler.java:57)
                                                               
       at 
io.undertow.server.handlers.PredicateHandler.handleRequest(PredicateHandler.java:43)
                                                                                
                         
       at 
io.undertow.security.handlers.AbstractConfidentialityHandler.handleRequest(AbstractConfidentialityHandler.java:46)
                                                                           
       at 
io.undertow.servlet.handlers.security.ServletConfidentialityConstraintHandler.handleRequest(ServletConfidentialityConstraintHandler.java:64)
                                                 
       at 
io.undertow.security.handlers.AuthenticationMechanismsHandler.handleRequest(AuthenticationMechanismsHandler.java:60)
                                                                         
       at 
io.undertow.servlet.handlers.security.CachedAuthenticatedSessionHandler.handleRequest(CachedAuthenticatedSessionHandler.java:77)
                                                             
       at 
io.undertow.security.handlers.AbstractSecurityContextAssociationHandler.handleRequest(AbstractSecurityContextAssociationHandler.java:43)
                                                     
       at 
io.undertow.server.handlers.PredicateHandler.handleRequest(PredicateHandler.java:43)
                                                                                
                         
       at 
io.undertow.servlet.handlers.SendErrorPageHandler.handleRequest(SendErrorPageHandler.java:52)
                                                                                
                
       at 
io.undertow.server.handlers.PredicateHandler.handleRequest(PredicateHandler.java:43)
                                                                                
                         
       at 
io.undertow.servlet.handlers.ServletInitialHandler.handleFirstRequest(ServletInitialHandler.java:275)
                                                                                
        
       at 
io.undertow.servlet.handlers.ServletInitialHandler.access$100(ServletInitialHandler.java:79)
                                                                                
                 
       at 
io.undertow.servlet.handlers.ServletInitialHandler$2.call(ServletInitialHandler.java:134)
                                                                                
                    
       at 
io.undertow.servlet.handlers.ServletInitialHandler$2.call(ServletInitialHandler.java:131)
                                                                                
                    
       at 
io.undertow.servlet.core.ServletRequestContextThreadSetupAction$1.call(ServletRequestContextThreadSetupAction.java:48)
                                                                       
       at 
io.undertow.servlet.core.ContextClassLoaderSetupAction$1.call(ContextClassLoaderSetupAction.java:43)
                                                                                
         
       at 
io.undertow.servlet.handlers.ServletInitialHandler.dispatchRequest(ServletInitialHandler.java:255)
                                                                                
           
       at 
io.undertow.servlet.handlers.ServletInitialHandler.access$000(ServletInitialHandler.java:79)
                                                                                
                 
       at 
io.undertow.servlet.handlers.ServletInitialHandler$1.handleRequest(ServletInitialHandler.java:100)
                                                                                
           
       at io.undertow.server.Connectors.executeRootHandler(Connectors.java:393) 
                                                                                
                                       
       at 
io.undertow.server.HttpServerExchange$1.run(HttpServerExchange.java:852)        
                                                                                
                             
       at 
org.jboss.threads.ContextClassLoaderSavingRunnable.run(ContextClassLoaderSavingRunnable.java:35)
                                                                                
             
       at 
org.jboss.threads.EnhancedQueueExecutor.safeRun(EnhancedQueueExecutor.java:2019)
                                                                                
                             
       at 
org.jboss.threads.EnhancedQueueExecutor$ThreadBody.doRunTask(EnhancedQueueExecutor.java:1558)
                                                                                
                
       at 
org.jboss.threads.EnhancedQueueExecutor$ThreadBody.run(EnhancedQueueExecutor.java:1449)
                                                                                
                      
       at org.xnio.XnioWorker$WorkerThreadFactory$1$1.run(XnioWorker.java:1282) 
                                                                                
                                       
       at java.lang.Thread.run(Thread.java:750)                                 
                                                                                
                                       
   Caused by: org.apache.shiro.authz.AuthorizationException: Not authorized to 
invoke method: public org.springframework.http.ResponseEntity 
org.apache.streampark.console.core.controller.ProxyControl
   
ler.proxyFlink(javax.servlet.http.HttpServletRequest,java.lang.String,java.lang.Long)
 throws java.lang.Exception                                                     
                               
       at 
org.apache.shiro.authz.aop.AuthorizingAnnotationMethodInterceptor.assertAuthorized(AuthorizingAnnotationMethodInterceptor.java:90)
                                                           
       ... 96 common frames omitted
   ```
   
   ### Screenshots
   
   页面异常截图
   
![Image](https://github.com/user-attachments/assets/b7f0c47d-3ee7-47b9-b5fa-811c76f65992)
   
   
   
   ### Are you willing to submit PR?
   
   - [ ] Yes I am willing to submit a PR!(您是否要贡献这个PR?)
   
   ### Code of Conduct
   
   - [x] I agree to follow this project's [Code of 
Conduct](https://www.apache.org/foundation/policies/conduct)
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to