Skip to content

Need a way to disable behavior added in "Automatically expose @PathVariables in the Model" SPR-7543 [SPR-8749] #13391

@spring-projects-issues

Description

@spring-projects-issues

Craig opened SPR-8749 and commented

#12200 made the change to automatically expose @PathVariables in the model. However, that change makes the means used to "unwrap" json, which rely on the Model having exactly 1 item in it, not work. For instance, the workout around posted here: http://pascaldimassimo.com/2010/04/13/how-to-return-a-single-json-list-out-of-mappingjacksonjsonview/ no longer works, nor does the configuration option http://static.springsource.org/spring/docs/3.1.x/javadoc-api/org/springframework/web/servlet/view/json/MappingJacksonJsonView.html#setExtractValueFromSingleKeyModel%28boolean%29 do anything any more.

There needs to be a way to disable automatically exposing @PathVariables in the model.


Affects: 3.1 M2

Issue Links:

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