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

#438: Only update the file path if resolve_casing is set to True. #512

Conversation

priscavdsluis
Copy link
Contributor

@priscavdsluis priscavdsluis commented Apr 5, 2023

Partially solves #435

This PR does not fix the root problem.

Using ".." in relative file paths in combination with the resolve file path casing functionality leads to incorrect file paths.
This PR only added a condition. This means the bug is solved for users that do not use the resolve file path casing functionality.

But we still need to think about how to fix the root problem it in a different PR.

@priscavdsluis priscavdsluis changed the title #438: Only update the file path if resolve_casing is set to True. #438: Incorrect resolving of relative paths for DiskOnlyFileModel Apr 5, 2023
@priscavdsluis priscavdsluis linked an issue Apr 5, 2023 that may be closed by this pull request
@priscavdsluis priscavdsluis added this to In progress in HYDROLIB-core via automation Apr 5, 2023
@priscavdsluis priscavdsluis added this to the Release 0.5 milestone Apr 5, 2023
@priscavdsluis priscavdsluis moved this from In progress to Ready to review in HYDROLIB-core Apr 5, 2023
@priscavdsluis priscavdsluis marked this pull request as ready for review April 5, 2023 13:41
@priscavdsluis priscavdsluis changed the title #438: Incorrect resolving of relative paths for DiskOnlyFileModel #438: Only update the file path if resolve_casing is set to True. Apr 5, 2023
@MRVermeulenDeltares MRVermeulenDeltares moved this from Ready to review to Review in progress in HYDROLIB-core Apr 7, 2023
@sonarcloud
Copy link

sonarcloud bot commented Apr 7, 2023

Kudos, SonarCloud Quality Gate passed!    Quality Gate passed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 0 Code Smells

No Coverage information No Coverage information
0.0% 0.0% Duplication

HYDROLIB-core automation moved this from Review in progress to Reviewer follow up Apr 7, 2023
@MRVermeulenDeltares MRVermeulenDeltares moved this from Reviewer follow up to Test in HYDROLIB-core Apr 7, 2023
@priscavdsluis priscavdsluis moved this from Test to Ready to merge in HYDROLIB-core Apr 11, 2023
@priscavdsluis priscavdsluis merged commit dd1b522 into main Apr 11, 2023
HYDROLIB-core automation moved this from Ready to merge to Done Apr 11, 2023
@priscavdsluis priscavdsluis deleted the fix/435-incorrect-resolving-of-relative-paths-for-diskonlyfilemodel branch April 11, 2023 08:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
HYDROLIB-core
  
Done
Development

Successfully merging this pull request may close these issues.

None yet

2 participants