Skip to content

Conversation

@undx
Copy link
Member

@undx undx commented Sep 8, 2025

@undx undx requested review from Copilot and ypiel-talend September 9, 2025 07:41
Copy link

Copilot AI left a 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 URISyntaxException with informative logging
  • Remove unused Paths import and add required URISyntaxException import

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());
Copy link

Copilot AI Sep 9, 2025

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()

Suggested change
info("Cannot convert MAVEN-INF/repository url to path: " + e.getMessage());
info("Cannot convert MAVEN-INF/repository URL to path: " + nested + ", error: " + e.getMessage());

Copilot uses AI. Check for mistakes.
ypiel-talend
ypiel-talend previously approved these changes Sep 9, 2025
Copy link
Contributor

@ypiel-talend ypiel-talend left a comment

Choose a reason for hiding this comment

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

LGTM

Copy link
Contributor

@ypiel-talend ypiel-talend left a comment

Choose a reason for hiding this comment

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

LGTM

@sonar-eks
Copy link

sonar-eks bot commented Sep 11, 2025

@undx undx merged commit 674c399 into master Sep 17, 2025
8 checks passed
@undx undx deleted the undx/QTDI-1963-windows-path branch September 17, 2025 08:16
ypiel-talend added a commit that referenced this pull request Nov 4, 2025
ypiel-talend added a commit that referenced this pull request Nov 10, 2025
* Revert "fix(QTDI-1963): fix windows path for rootRepo (#1101)"

This reverts commit 674c399.

* Revert "Reapply "feat(QTDI-693): TCK microservice/OSGI build with dynamic dependencies." (#1104)"

This reverts commit 9bfaacd.
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