Skip to content

SpringResourceAccessor::getResourcePath() can't handle the FileSystemResource #6978

Open
@dreamershl

Description

@dreamershl

Search first

  • I searched and no similar issues were found

Description

the issue is caused by class path resource convert again for non-class path resource

try{
   String url = resource.getURL().toExternalForm();
   while(!getResource("classpath:" + url).exists())
}

Steps To Reproduce

spring:
  liquibase: 
    change-log: file:../liquibase/change-master.yaml

Expected/Desired Behavior

path is resolved properly. no exception UnexpectedLiquibaseException("Could not determine path for ....") thrown

Liquibase Version

4.32.0

Database Vendor & Version

No response

Liquibase Integration

No response

Liquibase Extensions

No response

OS and/or Infrastructure Type/Provider

No response

Additional Context

No response

Are you willing to submit a PR?

  • I'm willing to submit a PR (Thank you!)

Metadata

Metadata

Assignees

No one assigned

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions