Skip to content

Fixed: Resolve test errors in framework-only deployments by adding spring-web dependency#1050

Merged
jacopoc merged 1 commit intoapache:trunkfrom
jacopoc:add-spring-web-dependency
Apr 3, 2026
Merged

Fixed: Resolve test errors in framework-only deployments by adding spring-web dependency#1050
jacopoc merged 1 commit intoapache:trunkfrom
jacopoc:add-spring-web-dependency

Conversation

@jacopoc
Copy link
Copy Markdown
Contributor

@jacopoc jacopoc commented Apr 3, 2026

Added spring-web version 6.2.17 to dependencies.gradle.

SimpleMethodTest (in the main source set of framework/testtools) statically initializes MockHttpServletResponse, which at class-load time references org.springframework.http.MediaType from spring-web. spring-web was never declared as a direct dependency, it was only arriving transitively via the LDAP plugin's CAS dependency. Without any plugins, it's missing from the classpath.

…ring-web dependency

Added spring-web version 6.2.17 to dependencies.gradle.
@JacquesLeRoux
Copy link
Copy Markdown
Contributor

Hi Jacopo,

I found the same yesterday http://shibboleth.net/pipermail/commits/2015-October/022972.html
As it was a bit old I had a doubt.

@jacopoc jacopoc merged commit 1a0675a into apache:trunk Apr 3, 2026
5 checks passed
@jacopoc jacopoc deleted the add-spring-web-dependency branch April 3, 2026 07:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants