You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
A HandlerInterceptor can only works on paths of handler method by determining the type of handler argument.
TraceLoggingInterceptor and TransactionTokenInterceptor are limited to handler methods only, but CodeListInterceptor works on paths other than handler methods.
Change CodeListInterceptor to work only on handler methods.
There is a concern that this will prevent CodeList from being referenced when forwarding to JSP without going through Controller. When using Thymeleaf as View, all Views are called through Controller.
Description
A HandlerInterceptor can only works on paths of handler method by determining the type of
handler
argument.TraceLoggingInterceptor and TransactionTokenInterceptor are limited to handler methods only, but CodeListInterceptor works on paths other than handler methods.
terasoluna-gfw/terasoluna-gfw-common-libraries/terasoluna-gfw-web/src/main/java/org/terasoluna/gfw/web/codelist/CodeListInterceptor.java
Lines 86 to 99 in 5495156
Note: Currently in blank projects we exclude the static resource path.
https://github.com/terasolunaorg/terasoluna-gfw-web-blank/blob/3416cde73b35f60ecc92e9c37e42b6da35d36b97/src/main/resources/META-INF/spring/spring-mvc.xml#L48-L54
Possible Solution
Change
CodeListInterceptor
to work only on handler methods.There is a concern that this will prevent
CodeList
from being referenced when forwarding to JSP without going through Controller. When using Thymeleaf as View, all Views are called through Controller.terasoluna-gfw/terasoluna-gfw-common-libraries/terasoluna-gfw-web/src/main/java/org/terasoluna/gfw/web/logging/TraceLoggingInterceptor.java
Lines 130 to 137 in 441285d
Note: A way to reference the
CodeList
directly from the View is provided.http://terasolunaorg.github.io/guideline/current/ja/ArchitectureInDetail/WebApplicationDetail/Codelist.html#jspbean
Affect versions
Issue links
The text was updated successfully, but these errors were encountered: