Skip to content

Support queries in opaque URLs #32920

Closed
Closed
@artembilan

Description

@artembilan

This is a regression in Spring Framework 6.2:

	@Test
	public void mailToUrlIsExpandedProperly() {
		DefaultUriBuilderFactory uriFactory = new DefaultUriBuilderFactory();
		String mailToUri = "mailto:{to}?subject={subject}";
		String to = "[email protected]";
		String subject = "Test subject";
		URI uri = uriFactory.expand(mailToUri, Map.of("to", to, "subject", subject));
		assertThat(uri.toString()).isEqualTo("mailto:%s?subject=%s".formatted(to, subject));
	}

The functionality comes from Spring WS with Mail and JMS transports: https://docs.spring.io/spring-ws/docs/current/reference/html/#_jms_transport_2.
So, same fails for ulrs like jms:{destination}?deliveryMode={deliveryMode}&priority={priority}.

Metadata

Metadata

Assignees

Labels

in: webIssues in web modules (web, webmvc, webflux, websocket)type: regressionA bug that is also a regression

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions