Skip to content

ResourceUtils.isUrl not considers classpath*: a valid protocol #24979

@vkochnev

Description

@vkochnev

Affects: \5.2.5

Discovered when trying to set spring.cloud.bootstrap.location to something like classpath*:/config/, but it didn't work because internally SpringBoot calls org.springframework.util.ResourceUtils#isUrl with supplied location and when receives false prepends it with file:. As a result it ends up with file:classpath*:/config/ in my case, which is obviously incorrect.

Expected result

ResourceUtils.isUrl("classpath*:/some/path/") == true just like in case of another pseudo-protocol classpath:.

Metadata

Metadata

Assignees

Labels

status: invalidAn issue that we don't feel is valid

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions