Skip to content

ApiVersionConfigurer.setVersionRequired(...) does not result in MissingApiVersionException #35386

@philwebb

Description

@philwebb

Calling ApiVersionConfigurer.setVersionRequired(true) in a Spring MVC application should a MissingApiVersionException to be thrown when the version is not found.

This currently doesn't appear to be the case, at least in Spring MVC.

I think the cause is this line where getDefaultVersion() is called but validateVersion is not called meaning these lines are not called.

Metadata

Metadata

Assignees

Labels

in: webIssues in web modules (web, webmvc, webflux, websocket)type: bugA general bug

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions