Skip to content
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

do not strip "classpath:" when normalizing the path #5894

Open
wants to merge 3 commits into
base: master
Choose a base branch
from

Conversation

andrus
Copy link

@andrus andrus commented May 8, 2024

Impact

This may or may not be a breaking change.

Description

This PR addresses the issue #5878 . It ensures that path "normalization" never strips the classpath: prefix when creating DatabaseChangeLog for child resources. The solution is submitted per @tati-qalified advise.

Things to be aware of

The altered method is static and is widely used across Liquibase. This may or may not be a breaking change.

Things to worry about

I don't fully understand the consequences of NOT stripping classpath: prefix when resolving relative paths for other implementations of ResourceAccessor. Quite possibly some of them will need to be updated as well. But it seems logical: in a hierarchy of resources, child resource resolution should follow the same algorithm as the root resource.

Additional Context

See #5878

.. preserving it is the only way to resolve relative paths with a custom ResourceAccessor
@MalloD12 MalloD12 requested a deployment to external May 21, 2024 19:32 — with GitHub Actions Abandoned
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
Status: Planned
Development

Successfully merging this pull request may close these issues.

Path normalization breaks classpath-relative paths with a custom ResourceAccessor
4 participants