-
Notifications
You must be signed in to change notification settings - Fork 50
fix(QTDI-1963): fix windows path for rootRepo #1101
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
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pull Request Overview
This PR fixes Windows path handling for the rootRepo variable by replacing manual URL string manipulation with proper URI-to-Path conversion. The change addresses path parsing issues on Windows systems where the previous approach of manually removing "file:" prefix could fail.
- Replace manual string manipulation with
Path.of(nested.toURI())for proper cross-platform URL-to-path conversion - Add proper exception handling for
URISyntaxExceptionwith informative logging - Remove unused
Pathsimport and add requiredURISyntaxExceptionimport
Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.
| try { | ||
| rootRepo = Path.of(nested.toURI()); | ||
| } catch (URISyntaxException e) { | ||
| info("Cannot convert MAVEN-INF/repository url to path: " + e.getMessage()); |
Copilot
AI
Sep 9, 2025
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The error message should be more descriptive and include the actual URL that failed to convert for better debugging. Consider: 'Cannot convert MAVEN-INF/repository URL to path: ' + nested + ', error: ' + e.getMessage()
| info("Cannot convert MAVEN-INF/repository url to path: " + e.getMessage()); | |
| info("Cannot convert MAVEN-INF/repository URL to path: " + nested + ", error: " + e.getMessage()); |
ypiel-talend
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
ypiel-talend
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
|
This reverts commit 674c399.

0 New Issues
0 Fixed Issues
0 Accepted Issues
https://qlik-dev.atlassian.net/browse/QTDI-1963