Re: [cas-user] 5.3.3 version issue getting request.queryString
see https://docs.spring.io/spring-webflow/docs/current/reference/html/ 2018-03-07 11:23 GMT-03:00 Satnam Sarai: > do you know any guide? I am not sure how to access request from webflow.. > > thanks > > > On Tuesday, March 6, 2018 at 10:59:19 AM UTC-8, Manfredo Hopp wrote: >> >> I would try a workaround, maybe accessing request from webflow. >> >> 2018-03-05 14:21 GMT-03:00 Satnam Sarai : >> >> Hello, >> >> In version 5.2.2, we were able to update casloginview.html to get >> *request.queryString. >> * >> >> >> However, in new version 5.2.3, we are getting template parsing error. >> below is cas.log and casLoginView.html >> >> Is this there a bug in 5.2.3, getting request.queryString. ? >> >> >> >> >> casLoginView.html >> >> >> http://www.ultraq.net.nz/thymeleaf/layout; >> layout:decorate="~{layout}"> >> >> >> >> >> >> >> >> >> Sign In | >> Create Account >> >> >> >> >> >> >> >> >> >> >> === CAS.LOG == >> >> 2018-03-05 09:17:07,848 ERROR [org.thymeleaf.TemplateEngine] - >> <[THYMELEAF][https-openssl-nio-8443-exec-7] Exception processing >> template "casLoginView": An error happened during template parsing >> (template: "class path resource [templates/casLoginView.html]")> >> org.thymeleaf.exceptions.TemplateInputException: An error happened >> during template parsing (template: "class path resource >> [templates/casLoginView.html]") >> at org.thymeleaf.templateparser.markup.AbstractMarkupTemplatePa >> rser.parse(AbstractMarkupTemplateParser.java:241) >> ~[thymeleaf-3.0.9.RELEASE.jar:3.0.9.RELEASE] >> at org.thymeleaf.templateparser.markup.AbstractMarkupTemplatePa >> rser.parseStandalone(AbstractMarkupTemplateParser.java:100) >> ~[thymeleaf-3.0.9.RELEASE.jar:3.0.9.RELEASE] >> at >> org.thymeleaf.engine.TemplateManager.parseAndProcess(TemplateManager.java:666) >> ~[thymeleaf-3.0.9.RELEASE.jar:3.0.9.RELEASE] >> at org.thymeleaf.TemplateEngine.process(TemplateEngine.java:1098) >> ~[thymeleaf-3.0.9.RELEASE.jar:3.0.9.RELEASE] >> at org.thymeleaf.TemplateEngine.process(TemplateEngine.java:1072) >> ~[thymeleaf-3.0.9.RELEASE.jar:3.0.9.RELEASE] >> at >> org.thymeleaf.spring4.view.ThymeleafView.renderFragment(ThymeleafView.java:352) >> ~[thymeleaf-spring4-3.0.9.RELEASE.jar:3.0.9.RELEASE] >> at >> org.thymeleaf.spring4.view.ThymeleafView.render(ThymeleafView.java:190) >> ~[thymeleaf-spring4-3.0.9.RELEASE.jar:3.0.9.RELEASE] >> at >> org.springframework.webflow.mvc.servlet.ServletMvcView.doRender(ServletMvcView.java:55) >> ~[spring-webflow-2.4.6.RELEASE.jar:2.4.6.RELEASE] >> at >> org.springframework.webflow.mvc.view.AbstractMvcView.render(AbstractMvcView.java:204) >> ~[spring-webflow-2.4.6.RELEASE.jar:2.4.6.RELEASE] >> at >> org.springframework.webflow.engine.ViewState.render(ViewState.java:293) >> ~[spring-webflow-2.4.6.RELEASE.jar:2.4.6.RELEASE] >> at >> org.springframework.webflow.engine.ViewState.doEnter(ViewState.java:185) >> ~[spring-webflow-2.4.6.RELEASE.jar:2.4.6.RELEASE] >> at org.springframework.webflow.engine.State.enter(State.java:194) >> ~[spring-webflow-2.4.6.RELEASE.jar:2.4.6.RELEASE] >> at >> org.springframework.webflow.engine.Transition.execute(Transition.java:228) >> ~[spring-webflow-2.4.6.RELEASE.jar:2.4.6.RELEASE] >> at org.springframework.webflow.engine.impl.FlowExecutionImpl.ex >> ecute(FlowExecutionImpl.java:395) ~[spring-webflow-2.4.6.RELEASE >> .jar:2.4.6.RELEASE] >> at org.springframework.webflow.engine.impl.RequestControlContex >> tImpl.execute(RequestControlContextImpl.java:214) >> ~[spring-webflow-2.4.6.RELEASE.jar:2.4.6.RELEASE] >> at org.springframework.webflow.engine.TransitionableState.handl >> eEvent(TransitionableState.java:116) ~[spring-webflow-2.4.6.RELEASE >> .jar:2.4.6.RELEASE] >> at org.springframework.webflow.engine.Flow.handleEvent(Flow.java:547) >> ~[spring-webflow-2.4.6.RELEASE.jar:2.4.6.RELEASE] >> at org.springframework.webflow.engine.impl.FlowExecutionImpl.ha >> ndleEvent(FlowExecutionImpl.java:390) ~[spring-webflow-2.4.6.RELEASE >> .jar:2.4.6.RELEASE] >> at org.springframework.webflow.engine.impl.RequestControlContex >> tImpl.handleEvent(RequestControlContextImpl.java:210) >> ~[spring-webflow-2.4.6.RELEASE.jar:2.4.6.RELEASE] >> at >> org.springframework.webflow.engine.ActionState.doEnter(ActionState.java:105) >> ~[spring-webflow-2.4.6.RELEASE.jar:2.4.6.RELEASE] >> at org.springframework.webflow.engine.State.enter(State.java:194) >> ~[spring-webflow-2.4.6.RELEASE.jar:2.4.6.RELEASE] >> at >> org.springframework.webflow.engine.Transition.execute(Transition.java:228) >> ~[spring-webflow-2.4.6.RELEASE.jar:2.4.6.RELEASE] >> at org.springframework.webflow.engine.impl.FlowExecutionImpl.ex >> ecute(FlowExecutionImpl.java:395) ~[spring-webflow-2.4.6.RELEASE >> .jar:2.4.6.RELEASE] >> at org.springframework.webflow.engine.impl.RequestControlContex >>
Re: [cas-user] 5.3.3 version issue getting request.queryString
do you know any guide? I am not sure how to access request from webflow.. thanks On Tuesday, March 6, 2018 at 10:59:19 AM UTC-8, Manfredo Hopp wrote: > > I would try a workaround, maybe accessing request from webflow. > > 2018-03-05 14:21 GMT-03:00 Satnam Sarai> : > > Hello, > > In version 5.2.2, we were able to update casloginview.html to get > *request.queryString. > * > > > However, in new version 5.2.3, we are getting template parsing error. > below is cas.log and casLoginView.html > > Is this there a bug in 5.2.3, getting request.queryString. ? > > > > >> casLoginView.html > > > http://www.ultraq.net.nz/thymeleaf/layout; > layout:decorate="~{layout}"> > > > > > > > > > Sign In | > th:href="${@environment.getProperty('post.createUrl')+'?'+#strings.defaultString(# > *request.queryString*,'')}">Create Account > > > > > > > > > > === CAS.LOG == > > 2018-03-05 09:17:07,848 ERROR [org.thymeleaf.TemplateEngine] - > <[THYMELEAF][https-openssl-nio-8443-exec-7] Exception processing template > "casLoginView": An error happened during template parsing (template: "class > path resource [templates/casLoginView.html]")> > org.thymeleaf.exceptions.TemplateInputException: An error happened during > template parsing (template: "class path resource > [templates/casLoginView.html]") > at > org.thymeleaf.templateparser.markup.AbstractMarkupTemplateParser.parse(AbstractMarkupTemplateParser.java:241) > > ~[thymeleaf-3.0.9.RELEASE.jar:3.0.9.RELEASE] > at > org.thymeleaf.templateparser.markup.AbstractMarkupTemplateParser.parseStandalone(AbstractMarkupTemplateParser.java:100) > > ~[thymeleaf-3.0.9.RELEASE.jar:3.0.9.RELEASE] > at > org.thymeleaf.engine.TemplateManager.parseAndProcess(TemplateManager.java:666) > > ~[thymeleaf-3.0.9.RELEASE.jar:3.0.9.RELEASE] > at org.thymeleaf.TemplateEngine.process(TemplateEngine.java:1098) > ~[thymeleaf-3.0.9.RELEASE.jar:3.0.9.RELEASE] > at org.thymeleaf.TemplateEngine.process(TemplateEngine.java:1072) > ~[thymeleaf-3.0.9.RELEASE.jar:3.0.9.RELEASE] > at > org.thymeleaf.spring4.view.ThymeleafView.renderFragment(ThymeleafView.java:352) > > ~[thymeleaf-spring4-3.0.9.RELEASE.jar:3.0.9.RELEASE] > at > org.thymeleaf.spring4.view.ThymeleafView.render(ThymeleafView.java:190) > ~[thymeleaf-spring4-3.0.9.RELEASE.jar:3.0.9.RELEASE] > at > org.springframework.webflow.mvc.servlet.ServletMvcView.doRender(ServletMvcView.java:55) > > ~[spring-webflow-2.4.6.RELEASE.jar:2.4.6.RELEASE] > at > org.springframework.webflow.mvc.view.AbstractMvcView.render(AbstractMvcView.java:204) > > ~[spring-webflow-2.4.6.RELEASE.jar:2.4.6.RELEASE] > at > org.springframework.webflow.engine.ViewState.render(ViewState.java:293) > ~[spring-webflow-2.4.6.RELEASE.jar:2.4.6.RELEASE] > at > org.springframework.webflow.engine.ViewState.doEnter(ViewState.java:185) > ~[spring-webflow-2.4.6.RELEASE.jar:2.4.6.RELEASE] > at org.springframework.webflow.engine.State.enter(State.java:194) > ~[spring-webflow-2.4.6.RELEASE.jar:2.4.6.RELEASE] > at > org.springframework.webflow.engine.Transition.execute(Transition.java:228) > ~[spring-webflow-2.4.6.RELEASE.jar:2.4.6.RELEASE] > at > org.springframework.webflow.engine.impl.FlowExecutionImpl.execute(FlowExecutionImpl.java:395) > > ~[spring-webflow-2.4.6.RELEASE.jar:2.4.6.RELEASE] > at > org.springframework.webflow.engine.impl.RequestControlContextImpl.execute(RequestControlContextImpl.java:214) > > ~[spring-webflow-2.4.6.RELEASE.jar:2.4.6.RELEASE] > at > org.springframework.webflow.engine.TransitionableState.handleEvent(TransitionableState.java:116) > > ~[spring-webflow-2.4.6.RELEASE.jar:2.4.6.RELEASE] > at org.springframework.webflow.engine.Flow.handleEvent(Flow.java:547) > ~[spring-webflow-2.4.6.RELEASE.jar:2.4.6.RELEASE] > at > org.springframework.webflow.engine.impl.FlowExecutionImpl.handleEvent(FlowExecutionImpl.java:390) > > ~[spring-webflow-2.4.6.RELEASE.jar:2.4.6.RELEASE] > at > org.springframework.webflow.engine.impl.RequestControlContextImpl.handleEvent(RequestControlContextImpl.java:210) > > ~[spring-webflow-2.4.6.RELEASE.jar:2.4.6.RELEASE] > at > org.springframework.webflow.engine.ActionState.doEnter(ActionState.java:105) > ~[spring-webflow-2.4.6.RELEASE.jar:2.4.6.RELEASE] > at org.springframework.webflow.engine.State.enter(State.java:194) > ~[spring-webflow-2.4.6.RELEASE.jar:2.4.6.RELEASE] > at > org.springframework.webflow.engine.Transition.execute(Transition.java:228) > ~[spring-webflow-2.4.6.RELEASE.jar:2.4.6.RELEASE] > at > org.springframework.webflow.engine.impl.FlowExecutionImpl.execute(FlowExecutionImpl.java:395) > > ~[spring-webflow-2.4.6.RELEASE.jar:2.4.6.RELEASE] > at > org.springframework.webflow.engine.impl.RequestControlContextImpl.execute(RequestControlContextImpl.java:214) > >
Re: [cas-user] 5.3.3 version issue getting request.queryString
thanks, Is there another way to get queryString? so far i found following information about this.. so far, i have not found workaround.. https://github.com/spring-projects/spring-boot/issues/11254 http://forum.thymeleaf.org/Thymeleaf-3-0-9-JUST-PUBLISHED-td4030728.html Create Account On Tuesday, March 6, 2018 at 4:51:52 AM UTC-8, Manfredo Hopp wrote: > > > Sounds like a thymeaf issue > > > TemplateProcessingException: Access to request parameters is forbidden in > this context. Note some restrictions apply to variable access. For example, > direct access to request parameters is forbidden in preprocessing and > unescaped expressions, in TEXT template mode, in fragment insertion > specifications and in some specific attribute processors. > > > > > El lunes, 5 de marzo de 2018, Satnam Sarai> escribió: > > Hello, > > In version 5.2.2, we were able to update casloginview.html to get > *request.queryString. > * > > > However, in new version 5.2.3, we are getting template parsing error. > below is cas.log and casLoginView.html > > Is this there a bug in 5.2.3, getting request.queryString. ? > > > > >> casLoginView.html > > > http://www.ultraq.net.nz/thymeleaf/layout; > layout:decorate="~{layout}"> > > > > > > > > > Sign In | > th:href="${@environment.getProperty('post.createUrl')+'?'+#strings.defaultString(# > *request.queryString*,'')}">Create Account > > > > > > > > > > === CAS.LOG == > > 2018-03-05 09:17:07,848 ERROR [org.thymeleaf.TemplateEngine] - > <[THYMELEAF][https-openssl-nio-8443-exec-7] Exception processing template > "casLoginView": An error happened during template parsing (template: "class > path resource [templates/casLoginView.html]")> > org.thymeleaf.exceptions.TemplateInputException: An error happened during > template parsing (template: "class path resource > [templates/casLoginView.html]") > at > org.thymeleaf.templateparser.markup.AbstractMarkupTemplateParser.parse(AbstractMarkupTemplateParser.java:241) > > ~[thymeleaf-3.0.9.RELEASE.jar:3.0.9.RELEASE] > at > org.thymeleaf.templateparser.markup.AbstractMarkupTemplateParser.parseStandalone(AbstractMarkupTemplateParser.java:100) > > ~[thymeleaf-3.0.9.RELEASE.jar:3.0.9.RELEASE] > at > org.thymeleaf.engine.TemplateManager.parseAndProcess(TemplateManager.java:666) > > ~[thymeleaf-3.0.9.RELEASE.jar:3.0.9.RELEASE] > at org.thymeleaf.TemplateEngine.process(TemplateEngine.java:1098) > ~[thymeleaf-3.0.9.RELEASE.jar:3.0.9.RELEASE] > at org.thymeleaf.TemplateEngine.process(TemplateEngine.java:1072) > ~[thymeleaf-3.0.9.RELEASE.jar:3.0.9.RELEASE] > at > org.thymeleaf.spring4.view.ThymeleafView.renderFragment(ThymeleafView.java:352) > > ~[thymeleaf-spring4-3.0.9.RELEASE.jar:3.0.9.RELEASE] > at > org.thymeleaf.spring4.view.ThymeleafView.render(ThymeleafView.java:190) > ~[thymeleaf-spring4-3.0.9.RELEASE.jar:3.0.9.RELEASE] > at > org.springframework.webflow.mvc.servlet.ServletMvcView.doRender(ServletMvcView.java:55) > > ~[spring-webflow-2.4.6.RELEASE.jar:2.4.6.RELEASE] > at > org.springframework.webflow.mvc.view.AbstractMvcView.render(AbstractMvcView.java:204) > > ~[spring-webflow-2.4.6.RELEASE.jar:2.4.6.RELEASE] > at > org.springframework.webflow.engine.ViewState.render(ViewState.java:293) > ~[spring-webflow-2.4.6.RELEASE.jar:2.4.6.RELEASE] > at > org.springframework.webflow.engine.ViewState.doEnter(ViewState.java:185) > ~[spring-webflow-2.4.6.RELEASE.jar:2.4.6.RELEASE] > at org.springframework.webflow.engine.State.enter(State.java:194) > ~[spring-webflow-2.4.6.RELEASE.jar:2.4.6.RELEASE] > at > org.springframework.webflow.engine.Transition.execute(Transition.java:228) > ~[spring-webflow-2.4.6.RELEASE.jar:2.4.6.RELEASE] > at > org.springframework.webflow.engine.impl.FlowExecutionImpl.execute(FlowExecutionImpl.java:395) > > ~[spring-webflow-2.4.6.RELEASE.jar:2.4.6.RELEASE] > at > org.springframework.webflow.engine.impl.RequestControlContextImpl.execute(RequestControlContextImpl.java:214) > > ~[spring-webflow-2.4.6.RELEASE.jar:2.4.6.RELEASE] > at > org.springframework.webflow.engine.TransitionableState.handleEvent(TransitionableState.java:116) > > ~[spring-webflow-2.4.6.RELEASE.jar:2.4.6.RELEASE] > at org.springframework.webflow.engine.Flow.handleEvent(Flow.java:547) > ~[spring-webflow-2.4.6.RELEASE.jar:2.4.6.RELEASE] > at > org.springframework.webflow.engine.impl.FlowExecutionImpl.handleEvent(FlowExecutionImpl.java:390) > > ~[spring-webflow-2.4.6.RELEASE.jar:2.4.6.RELEASE] > at > org.springframework.webflow.engine.impl.RequestControlContextImpl.handleEvent(RequestControlContextImpl.java:210) > > ~[spring-webflow-2.4.6.RELEASE.jar:2.4.6.RELEASE] > at > org.springframework.webflow.engine.ActionState.doEnter(ActionState.java:105) > ~[spring-webflow-2.4.6.RELEASE.jar:2.4.6.RELEASE] > at