Skip to content

MockHttpServletRequest with Host: set builds wrong getRequestURL() [SPR-16138] #20686

Closed
@spring-projects-issues

Description

@spring-projects-issues

Steven Schlansker opened SPR-16138 and commented

MockHttpServletRequest has a serverName field, but the getter does additional logic around parsing the Host: header. This leads to inconsistency when getRequestURL reflects a different serverName than getServerName does.

#1579


Affects: 4.3.12

Issue Links:

Referenced from: commits 9ca4de1, 0edf4d6

Backported to: 4.3.13

Metadata

Metadata

Assignees

Labels

in: testIssues in the test modulestatus: backportedAn issue that has been backported to maintenance branchestype: bugA general bug

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions