Skip to content

Remove ResourceController mappigs with param useDefaultLabel #1643

Closed
@spencergibb

Description

@spencergibb

ResourceController has multiple @RequestMappings that would conflict, currently to avoid passing the label we use the useDefaultLabel request parameter to select. Starting with spring 5.3 this is no longer happening.

Given

	@RequestMapping("/{name}/{profile}/{label}/**")
// and 
	@RequestMapping(value = "/{name}/{profile}/**", params = "useDefaultLabel")

Calling /foo/default/file.txt?useDefaultLabel used to route to the later, now it routes to the former and produces an error because the file is treated as a label.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions