thymeleaf-3.0.9 request.queryString

classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|

thymeleaf-3.0.9 request.queryString

ssingh
Hello,

in 3.0.7 the following code worked fine.. but in 3.0.9, it is throwing "A problem occurred whilst attempting to access the property 'queryString': 'Unable to access property 'queryString' through getter method'"  

 test



How can we access querystring in 3.0.9?  
Reply | Threaded
Open this post in threaded view
|

Re: thymeleaf-3.0.9 request.queryString

Metroids
Interesting... this does seem to be an incompatible change.

org.thymeleaf.exceptions.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.


Don't have a fix, just verified that it happens.
Reply | Threaded
Open this post in threaded view
|

Re: thymeleaf-3.0.9 request.queryString

danielfernandez
Administrator
In reply to this post by ssingh
Access to queryString has been restricted in certain scenarios to improve protection against code injection.

Please see:

https://github.com/thymeleaf/thymeleaf/issues/648
https://github.com/thymeleaf/thymeleaf/issues/649

Regards,
Daniel