xloya opened a new issue #3722:
URL: https://github.com/apache/incubator-dolphinscheduler/issues/3722


   **Describe the bug**
   I deployed a dev branch development environment. After I changed the 
password in the environment and submitted it, the page reported an updated user 
error message.
   
   **Expected behavior**
   java.lang.IllegalStateException: Optional int parameter 'state' is present 
but cannot be translated into a null value due to being declared as a primitive 
type. Consider declaring it as object wrapper for the corresponding primitive 
type.
        at 
org.springframework.web.method.annotation.AbstractNamedValueMethodArgumentResolver.handleNullValue(AbstractNamedValueMethodArgumentResolver.java:245)
 ~[spring-web-5.1.5.RELEASE.jar:5.1.5.RELEASE]
        at 
org.springframework.web.method.annotation.AbstractNamedValueMethodArgumentResolver.resolveArgument(AbstractNamedValueMethodArgumentResolver.java:115)
 ~[spring-web-5.1.5.RELEASE.jar:5.1.5.RELEASE]
        at 
org.springframework.web.method.support.HandlerMethodArgumentResolverComposite.resolveArgument(HandlerMethodArgumentResolverComposite.java:126)
 ~[spring-web-5.1.5.RELEASE.jar:5.1.5.RELEASE]
        at 
org.springframework.web.method.support.InvocableHandlerMethod.getMethodArgumentValues(InvocableHandlerMethod.java:166)
 ~[spring-web-5.1.5.RELEASE.jar:5.1.5.RELEASE]
        at 
org.springframework.web.method.support.InvocableHandlerMethod.invokeForRequest(InvocableHandlerMethod.java:134)
 ~[spring-web-5.1.5.RELEASE.jar:5.1.5.RELEASE]
        at 
org.springframework.web.servlet.mvc.method.annotation.ServletInvocableHandlerMethod.invokeAndHandle(ServletInvocableHandlerMethod.java:102)
 ~[spring-webmvc-5.1.5.RELEASE.jar:5.1.5.RELEASE]
        at 
org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerAdapter.invokeHandlerMethod(RequestMappingHandlerAdapter.java:895)
 ~[spring-webmvc-5.1.5.RELEASE.jar:5.1.5.RELEASE]
        at 
org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerAdapter.handleInternal(RequestMappingHandlerAdapter.java:800)
 ~[spring-webmvc-5.1.5.RELEASE.jar:5.1.5.RELEASE]
        at 
org.springframework.web.servlet.mvc.method.AbstractHandlerMethodAdapter.handle(AbstractHandlerMethodAdapter.java:87)
 ~[spring-webmvc-5.1.5.RELEASE.jar:5.1.5.RELEASE]
        at 
org.springframework.web.servlet.DispatcherServlet.doDispatch(DispatcherServlet.java:1038)
 ~[spring-webmvc-5.1.5.RELEASE.jar:5.1.5.RELEASE]
        at 
org.springframework.web.servlet.DispatcherServlet.doService(DispatcherServlet.java:942)
 ~[spring-webmvc-5.1.5.RELEASE.jar:5.1.5.RELEASE]
        at 
org.springframework.web.servlet.FrameworkServlet.processRequest(FrameworkServlet.java:1005)
 [spring-webmvc-5.1.5.RELEASE.jar:5.1.5.RELEASE]
        at 
org.springframework.web.servlet.FrameworkServlet.doPost(FrameworkServlet.java:908)
 [spring-webmvc-5.1.5.RELEASE.jar:5.1.5.RELEASE]
        at javax.servlet.http.HttpServlet.service(HttpServlet.java:707) 
[javax.servlet-api-3.1.0.jar:3.1.0]
        at 
org.springframework.web.servlet.FrameworkServlet.service(FrameworkServlet.java:882)
 [spring-webmvc-5.1.5.RELEASE.jar:5.1.5.RELEASE]
        at javax.servlet.http.HttpServlet.service(HttpServlet.java:790) 
[javax.servlet-api-3.1.0.jar:3.1.0]
        at 
org.eclipse.jetty.servlet.ServletHolder.handle(ServletHolder.java:867) 
[jetty-servlet-9.4.14.v20181114.jar:9.4.14.v20181114]
        at 
org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1623)
 [jetty-servlet-9.4.14.v20181114.jar:9.4.14.v20181114]
        at 
com.github.xiaoymin.swaggerbootstrapui.filter.SecurityBasicAuthFilter.doFilter(SecurityBasicAuthFilter.java:84)
 [swagger-bootstrap-ui-1.9.3.jar:na]
        at 
org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1610)
 [jetty-servlet-9.4.14.v20181114.jar:9.4.14.v20181114]
        at 
com.github.xiaoymin.swaggerbootstrapui.filter.ProductionSecurityFilter.doFilter(ProductionSecurityFilter.java:53)
 [swagger-bootstrap-ui-1.9.3.jar:na]
        at 
org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1610)
 [jetty-servlet-9.4.14.v20181114.jar:9.4.14.v20181114]
        at 
org.springframework.web.filter.RequestContextFilter.doFilterInternal(RequestContextFilter.java:99)
 [spring-web-5.1.5.RELEASE.jar:5.1.5.RELEASE]
        at 
org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:107)
 [spring-web-5.1.5.RELEASE.jar:5.1.5.RELEASE]
        at 
org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1610)
 [jetty-servlet-9.4.14.v20181114.jar:9.4.14.v20181114]
        at 
org.springframework.web.filter.FormContentFilter.doFilterInternal(FormContentFilter.java:92)
 [spring-web-5.1.5.RELEASE.jar:5.1.5.RELEASE]
        at 
org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:107)
 [spring-web-5.1.5.RELEASE.jar:5.1.5.RELEASE]
        at 
org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1610)
 [jetty-servlet-9.4.14.v20181114.jar:9.4.14.v20181114]
        at 
org.springframework.web.filter.HiddenHttpMethodFilter.doFilterInternal(HiddenHttpMethodFilter.java:93)
 [spring-web-5.1.5.RELEASE.jar:5.1.5.RELEASE]
        at 
org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:107)
 [spring-web-5.1.5.RELEASE.jar:5.1.5.RELEASE]
        at 
org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1610)
 [jetty-servlet-9.4.14.v20181114.jar:9.4.14.v20181114]
        at 
org.springframework.web.filter.CharacterEncodingFilter.doFilterInternal(CharacterEncodingFilter.java:200)
 [spring-web-5.1.5.RELEASE.jar:5.1.5.RELEASE]
        at 
org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:107)
 [spring-web-5.1.5.RELEASE.jar:5.1.5.RELEASE]
        at 
org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1610)
 [jetty-servlet-9.4.14.v20181114.jar:9.4.14.v20181114]
        at 
org.eclipse.jetty.servlet.ServletHandler.doHandle(ServletHandler.java:540) 
[jetty-servlet-9.4.14.v20181114.jar:9.4.14.v20181114]
        at 
org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:146) 
[jetty-server-9.4.14.v20181114.jar:9.4.14.v20181114]
        at 
org.eclipse.jetty.security.SecurityHandler.handle(SecurityHandler.java:548) 
[jetty-security-9.4.14.v20181114.jar:9.4.14.v20181114]
        at 
org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:132) 
[jetty-server-9.4.14.v20181114.jar:9.4.14.v20181114]
        at 
org.eclipse.jetty.server.handler.ScopedHandler.nextHandle(ScopedHandler.java:257)
 [jetty-server-9.4.14.v20181114.jar:9.4.14.v20181114]
        at 
org.eclipse.jetty.server.session.SessionHandler.doHandle(SessionHandler.java:1588)
 [jetty-server-9.4.14.v20181114.jar:9.4.14.v20181114]
        at 
org.eclipse.jetty.server.handler.ScopedHandler.nextHandle(ScopedHandler.java:255)
 [jetty-server-9.4.14.v20181114.jar:9.4.14.v20181114]
        at 
org.eclipse.jetty.server.handler.ContextHandler.doHandle(ContextHandler.java:1345)
 [jetty-server-9.4.14.v20181114.jar:9.4.14.v20181114]
        at 
org.eclipse.jetty.server.handler.ScopedHandler.nextScope(ScopedHandler.java:203)
 [jetty-server-9.4.14.v20181114.jar:9.4.14.v20181114]
        at 
org.eclipse.jetty.servlet.ServletHandler.doScope(ServletHandler.java:480) 
[jetty-servlet-9.4.14.v20181114.jar:9.4.14.v20181114]
        at 
org.eclipse.jetty.server.session.SessionHandler.doScope(SessionHandler.java:1557)
 [jetty-server-9.4.14.v20181114.jar:9.4.14.v20181114]
        at 
org.eclipse.jetty.server.handler.ScopedHandler.nextScope(ScopedHandler.java:201)
 [jetty-server-9.4.14.v20181114.jar:9.4.14.v20181114]
        at 
org.eclipse.jetty.server.handler.ContextHandler.doScope(ContextHandler.java:1247)
 [jetty-server-9.4.14.v20181114.jar:9.4.14.v20181114]
        at 
org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:144) 
[jetty-server-9.4.14.v20181114.jar:9.4.14.v20181114]
        at 
org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:132) 
[jetty-server-9.4.14.v20181114.jar:9.4.14.v20181114]
        at org.eclipse.jetty.server.Server.handle(Server.java:502) 
[jetty-server-9.4.14.v20181114.jar:9.4.14.v20181114]
        at org.eclipse.jetty.server.HttpChannel.handle(HttpChannel.java:364) 
[jetty-server-9.4.14.v20181114.jar:9.4.14.v20181114]
        at 
org.eclipse.jetty.server.HttpConnection.onFillable(HttpConnection.java:260) 
[jetty-server-9.4.14.v20181114.jar:9.4.14.v20181114]
        at 
org.eclipse.jetty.io.AbstractConnection$ReadCallback.succeeded(AbstractConnection.java:305)
 [jetty-io-9.4.14.v20181114.jar:9.4.14.v20181114]
        at org.eclipse.jetty.io.FillInterest.fillable(FillInterest.java:103) 
[jetty-io-9.4.14.v20181114.jar:9.4.14.v20181114]
        at org.eclipse.jetty.io.ChannelEndPoint$2.run(ChannelEndPoint.java:118) 
[jetty-io-9.4.14.v20181114.jar:9.4.14.v20181114]
        at 
org.eclipse.jetty.util.thread.strategy.EatWhatYouKill.runTask(EatWhatYouKill.java:333)
 [jetty-util-9.4.14.v20181114.jar:9.4.14.v20181114]
        at 
org.eclipse.jetty.util.thread.strategy.EatWhatYouKill.doProduce(EatWhatYouKill.java:310)
 [jetty-util-9.4.14.v20181114.jar:9.4.14.v20181114]
        at 
org.eclipse.jetty.util.thread.strategy.EatWhatYouKill.tryProduce(EatWhatYouKill.java:168)
 [jetty-util-9.4.14.v20181114.jar:9.4.14.v20181114]
        at 
org.eclipse.jetty.util.thread.strategy.EatWhatYouKill.run(EatWhatYouKill.java:126)
 [jetty-util-9.4.14.v20181114.jar:9.4.14.v20181114]
        at 
org.eclipse.jetty.util.thread.ReservedThreadExecutor$ReservedThread.run(ReservedThreadExecutor.java:366)
 [jetty-util-9.4.14.v20181114.jar:9.4.14.v20181114]
        at 
org.eclipse.jetty.util.thread.QueuedThreadPool.runJob(QueuedThreadPool.java:765)
 [jetty-util-9.4.14.v20181114.jar:9.4.14.v20181114]
        at 
org.eclipse.jetty.util.thread.QueuedThreadPool$2.run(QueuedThreadPool.java:683) 
[jetty-util-9.4.14.v20181114.jar:9.4.14.v20181114]
        at java.lang.Thread.run(Thread.java:748) [na:1.8.0_265]
   
   
   **Screenshots**
   
![image](https://user-images.githubusercontent.com/26177232/92882887-e9750280-f442-11ea-8d42-0f09de7e60df.png)
   
   
   **Which version of Dolphin Scheduler:**
    -[dev-branch]
   
   
   **Requirement or improvement**
   I guessed from the exception that it was a UI problem, so I looked for the 
source code of the UI. I found a problem in 
dolphinscheduler-ui->src->js->conf->home->pages->user->pages->password-> 
_sour-> infos.vue.
   
![image](https://user-images.githubusercontent.com/26177232/92883879-e1699280-f443-11ea-84bb-74fcd74c2953.png)
   Add "State: this.userinfo.state" to this code param, and after redeploying 
the UI, you can successfully submit the request to change the password.
   
![image](https://user-images.githubusercontent.com/26177232/92884217-386f6780-f444-11ea-992b-921dd27da427.png)
   
![image](https://user-images.githubusercontent.com/26177232/92884353-59d05380-f444-11ea-9349-1cf022576364.png)
   
   


----------------------------------------------------------------
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.

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


Reply via email to