Skip to content

Allow anonymous WS-Addressing replies without MessageID#1848

Open
goutamadwant wants to merge 1 commit into
spring-projects:mainfrom
goutamadwant:GH-1427
Open

Allow anonymous WS-Addressing replies without MessageID#1848
goutamadwant wants to merge 1 commit into
spring-projects:mainfrom
goutamadwant:GH-1427

Conversation

@goutamadwant

Copy link
Copy Markdown

WS-Addressing 1.0 requests may omit MessageID when replies are sent to the anonymous endpoint or discarded via the none endpoint. Spring WS currently defaults a missing ReplyTo to anonymous, but still treats the non-null default endpoint as requiring MessageID.

This updates the WS-Addressing 1.0 required-property check so MessageID is only required when ReplyTo or FaultTo targets a non-anonymous, non-none endpoint. The regression coverage includes explicit anonymous ReplyTo, missing ReplyTo, and none ReplyTo requests without MessageID.

Closes gh-1427

Testing:

  • ./gradlew :spring-ws-core:test --tests org.springframework.ws.soap.addressing.server.AddressingInterceptor10Tests --max-workers=2
  • ./gradlew :spring-ws-core:test --tests 'org.springframework.ws.soap.addressing.*' --max-workers=2
  • ./gradlew :spring-ws-core:test --max-workers=2
  • ./gradlew :spring-ws-core:check --max-workers=2
  • git diff --check

Signed-off-by: Goutam Adwant <8672451+goutamadwant@users.noreply.github.com>
@snicoll snicoll self-requested a review July 3, 2026 16:02
@spring-projects-issues spring-projects-issues added the status: waiting-for-triage An issue we've not yet triaged label Jul 3, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

status: waiting-for-triage An issue we've not yet triaged

Projects

None yet

Development

Successfully merging this pull request may close these issues.

SOAP WS-Addressing MessageId header is always required when receiving message using Addressing10 (http://www.w3.org/2005/08/addressing)

2 participants