Skip to content

MatrixVariables do not work [SPR-11036] #15664

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
spring-projects-issues opened this issue Oct 28, 2013 · 3 comments
Closed

MatrixVariables do not work [SPR-11036] #15664

spring-projects-issues opened this issue Oct 28, 2013 · 3 comments
Assignees
Labels
in: web Issues in web modules (web, webmvc, webflux, websocket) status: declined A suggestion or change that we don't feel we should currently apply

Comments

@spring-projects-issues
Copy link
Collaborator

spring-projects-issues commented Oct 28, 2013

Alexander Czar opened SPR-11036 and commented

Matrix Variables do not work in versions beyond 3.2.2 (e.g. 3.2.3, 3.2.4, 3.2.5 snapshot).
I created a project on GitHub which illustrates the issue. The project is attached as URL reference to this report.


Affects: 3.2.4

Reference URL: https://github.com/AlexCzar/MatrixVarsFail

Issue Links:

@spring-projects-issues
Copy link
Collaborator Author

spring-projects-issues commented Oct 28, 2013

Rossen Stoyanchev commented

You need to explicitly enable use of matrix variables in request mappings. See #14867 and it is also in the documentation. In your case something like this:

@Configuration
@ComponentScan("io.czar.spring.bugreport.springmatrixvars.controllers")
public class WebConfig  extends WebMvcConfigurationSupport {

	@Override
	public RequestMappingHandlerMapping requestMappingHandlerMapping() {
		RequestMappingHandlerMapping hm = super.requestMappingHandlerMapping();
		hm.setRemoveSemicolonContent(false);
		return hm;
	}

}

@spring-projects-issues
Copy link
Collaborator Author

Alexander Czar commented

Thanks. I thought it is set by default when I extend WebMvcConfigurationSupport, documentation is a bit ambiguous.

@spring-projects-issues
Copy link
Collaborator Author

spring-projects-issues commented Jan 21, 2014

Stéphane Nicoll commented

Alexander, the doc that shipped with 4.0.0 was indeed a bit confusing but this has been fixed meanwhile. #15955 will further improve this section.

@spring-projects-issues spring-projects-issues added type: bug A general bug status: declined A suggestion or change that we don't feel we should currently apply in: web Issues in web modules (web, webmvc, webflux, websocket) labels Jan 11, 2019
@spring-projects-issues spring-projects-issues removed the type: bug A general bug label Jan 12, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
in: web Issues in web modules (web, webmvc, webflux, websocket) status: declined A suggestion or change that we don't feel we should currently apply
Projects
None yet
Development

No branches or pull requests

2 participants