Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -160,7 +160,9 @@ public void validateRawModel(Model m, ModelBuildingRequest request, ModelProblem
Severity errOn30 = getSeverity(request, ModelBuildingRequest.VALIDATION_LEVEL_MAVEN_3_0);
Severity errOn31 = getSeverity(request, ModelBuildingRequest.VALIDATION_LEVEL_MAVEN_3_1);

// [MNG-8129] Validate that relativePath does not contain characters that are illegal in filesystem paths
// [MNG-8129] Validate that relativePath does not contain characters reserved on Windows (NTFS).
// These cause InvalidPathException when resolved via java.nio.file.Path, and typically
// indicate the user put a GAV coordinate (e.g. "g:a:v") instead of an actual filesystem path.
if (parent != null
&& parent.getRelativePath() != null
&& !parent.getRelativePath().isEmpty()) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -443,7 +443,9 @@ public void validateFileModel(Session s, Model m, int validationLevel, ModelProb
Severity errOn30 = getSeverity(validationLevel, ModelValidator.VALIDATION_LEVEL_MAVEN_3_0);
Severity errOn31 = getSeverity(validationLevel, ModelValidator.VALIDATION_LEVEL_MAVEN_3_1);

// [MNG-8129] Validate that relativePath does not contain characters that are illegal in filesystem paths
// [MNG-8129] Validate that relativePath does not contain characters reserved on Windows (NTFS).
// These cause InvalidPathException when resolved via java.nio.file.Path, and typically
// indicate the user put a GAV coordinate (e.g. "g:a:v") instead of an actual filesystem path.
if (parent != null
&& parent.getRelativePath() != null
&& !parent.getRelativePath().isEmpty()) {
Expand Down
Loading