Skip to content

Grails 7 migration issue with when Xframe Options plugin is enabled #14123

@weinellucian

Description

@weinellucian

Expected Behavior

During Grails 7 migration we see are getting the following Exceptions, this issue is because of XFrameOptionsFilter part of grails plugin x-frame-options uses javax.servlet package which is not supported with Grails 7, can you point out the latest version of x-frame-options grails plugin supporting
jakarta.servlet

Exception Stack Trace

[2025-04-04 14:15:50.384] [http-nio-8080-exec-2] ERROR org.apache.catalina.core.ContainerBase.[Tomcat].[localhost].[/SampleSandboxApp].[dispatcherServletRegistration] - Servlet.service() for servlet [dispatcherServletRegistration] in context with path [/SampleSandboxApp] threw exception [Filter execution threw an exception] with root cause
java.lang.AbstractMethodError: Missing implementation of resolved method 'abstract void doFilterInternal(jakarta.servlet.http.HttpServletRequest, jakarta.servlet.http.HttpServletResponse, jakarta.servlet.FilterChain)' of abstract class org.springframework.web.filter.OncePerRequestFilter.
at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:116)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:164)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:140)
at org.sitemesh.webapp.contentfilter.ContentBufferingFilter.bufferAndPostProcess(ContentBufferingFilter.java:201)
at org.sitemesh.webapp.contentfilter.ContentBufferingFilter.doFilter(ContentBufferingFilter.java:158)
at org.sitemesh.webapp.SiteMeshFilter.doFilter(SiteMeshFilter.java:144)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:164)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:140)
at org.springframework.security.web.FilterChainProxy.lambda$doFilterInternal$3(FilterChainProxy.java:231)
at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:365)
at org.springframework.security.web.access.intercept.FilterSecurityInterceptor.invoke(FilterSecurityInterceptor.java:117)

Actual Behaviour

No response

Steps To Reproduce

No response

Environment Information

Windows 11 Pro
JDK 17

Example Application

No response

Version

7.0.0-M3

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions