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

normalize paths in DatabaseChangeLog using commons-io (DAT-17592) #5888

Merged
merged 4 commits into from
May 9, 2024

Conversation

StevenMassaro
Copy link
Contributor

@StevenMassaro StevenMassaro commented May 7, 2024

Impact

  • Bug fix (non-breaking change which fixes expected existing functionality)
  • Enhancement/New feature (adds functionality without impacting existing logic)
  • Breaking change (fix or feature that would cause existing functionality to change)

Description

Using Paths.get will fail on Windows with certain types of paths, like an s3:// path. This PR changes the behavior to first use Commons-IO to try to normalize the path, then fail back to Paths.get in the event that commons doesn't work as desired.

Things to be aware of

Things to worry about

Additional Context

@StevenMassaro StevenMassaro marked this pull request as ready for review May 7, 2024 17:32
Copy link
Collaborator

@filipelautert filipelautert left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I/O!

@filipelautert filipelautert self-requested a review May 7, 2024 19:09
Copy link
Collaborator

@filipelautert filipelautert left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You also need to update the README.TXT with commons-io

@StevenMassaro StevenMassaro merged commit 55188e8 into master May 9, 2024
35 of 36 checks passed
@StevenMassaro StevenMassaro deleted the DAT-17592 branch May 9, 2024 15:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants