Skip to content

Conversation

@luizfiliperm
Copy link
Contributor

This PR addresses the issue reported in #15281.

Starting from Grails 3.x, the framework switched to using HashMap when assembling the controller result model.
Because HashMap does not guarantee insertion order, Maps returned by controllers may reach interceptors and filters with their fields in a different order than the one originally defined.
This behavior has continued unchanged up to the current releases.

This PR updates the implementation of UrlMappingsInfoHandlerAdapter to use LinkedHashMap, restoring deterministic ordering consistent with Grails 2.

Only the relevant code path was modified, and no additional behavior was affected.

@github-actions github-actions bot added the bug label Dec 10, 2025
@jdaugherty jdaugherty merged commit 4b22f2b into apache:7.0.x Dec 11, 2025
35 of 36 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

2 participants