Stop @EnableWebMvc from being automatically added to Grails Applications#13863
Draft
codeconsole wants to merge 1 commit intoapache:7.0.xfrom
Draft
Stop @EnableWebMvc from being automatically added to Grails Applications#13863codeconsole wants to merge 1 commit intoapache:7.0.xfrom
codeconsole wants to merge 1 commit intoapache:7.0.xfrom
Conversation
Contributor
Author
Contributor
|
Did you try this out with BookFunctionalSpec > Test that when the /viewBooks URL is hit it redirects to the book list FAILED
Condition not satisfied:
title == "Book List"
| |
| false
| 36 differences (7% similarity)
| (HTTP) (Statu)s( 500 – In)t(ernal Server Error)
| (Book) (Li---)s(---------)t(------------------)
HTTP Status 500 – Internal Server Error
at functionaltests.BookFunctionalSpec.Test that when the /viewBooks URL is hit it redirects to the book list(BookFunctionalSpec.groovy:15)'2024-11-20 17:31:50.853 ERROR --- [nio-8080-exec-1] .C.[.[.[.[dispatcherServletRegistration] : Servlet.service() for servlet [dispatcherServletRegistration] in context with path [] threw exception
org.codehaus.groovy.runtime.typehandling.GroovyCastException: Cannot cast object 'org.sitemesh.webapp.contentfilter.HttpServletRequestFilterable@6b88ebe0' with class 'org.springframework.web.context.request.ServletRequestAttributes' to class 'org.grails.web.servlet.mvc.GrailsWebRequest'
at org.codehaus.groovy.runtime.typehandling.DefaultTypeTransformation.continueCastOnSAM(DefaultTypeTransformation.java:415) |
Contributor
Author
@matrei please read above "This pull request is not finished" |
Contributor
|
Sorry, I thought I got a review request. |
Contributor
Author
@matrei well, technically you did, but I immediately cancelled it and added the line "this pull request is not finished" before you got here😜 |
Contributor
I have converted this PR to Draft for now. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This produces unknown/unexpected behavior and should not be done. @EnableWebMvc is a Spring Framework configuration annotation not to be used with Spring Boot. It produces undesired behavior by automatically creating beans that are not wanted. WebMvcAutoConfiguration performs all the behavior of this configuration because it extends it and adds conditional logic.
Fixes
vs
This pull request is not finished