apache / apache/maven-filtering

BaseFilter.loadProperties() silently skips null/empty filter file entries

Open Beginner friendly
#357 0 comments 0 reactions 0 assignees View on GitHub
bug
Dominant language
Java
Stars
9
Forks
36
Avg merge
8h 47m
Merged PRs (30d)
4

Description

In `src/main/java/org/apache/maven/shared/filtering/BaseFilter.java`, line 192:

```
if (filterFile == null || filterFile.trim().isEmpty()) {
// skip empty file name
continue;
}
```

Null or empty entries in the filters list are silently skipped. If a caller accidentally includes an empty string in their filter list (e.g., from a malformed POM), no warning or error is logged. The problem is silently masked.

Contributor guide

No contributing guide indexed for this repository

Research direction

Start in src/main/java/org/apache/maven/shared/filtering/BaseFilter.java around line 192 and trace how null or empty filter entries are handled. Check the existing tests for BaseFilter.loadProperties() before choosing the project's expected reporting behavior. Done means malformed entries are no longer silently masked and the behavior is covered by tests.

Written by the indexing model from the issue text.

Assessment

Tech stack
java
Domain
build-system
Issue type
Bug
Difficulty
2/5
Estimated time
1-3 hours
Activity status
Quiet
Clarity
Mostly clear
Newbie friendliness
66/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.