Skip to content

HierarchicalUriComponents::getPort() throws NumberFormatException with invalid port in URI #28521

Closed
@Jackson-S

Description

@Jackson-S

Affects: 5.3.18


HierarchicalUriComponents::toUri() throws java.lang.NumberFormatException instead of the expected IllegalStateException when provided with a URI of the format https://x.com:string.

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