Elliotte reported bugs
Los mantenedores suelen responder en 5 días
Nadie ha tomado este issue todavía.
Evaluación
- Dificultad
- 5/5
- Tiempo estimado
- Más de una semana
- Aptitud para principiantes
- 20/100
- Tipo de issue
- Error
- Claridad
- Necesita aclaración
- Estado de actividad
- Tranquilo
- Stack tecnológico
- java
- Área
- build-system, tooling
Línea de trabajo
Empieza separando los 17 informes en issues individuales y, después, inspecciona los archivos mencionados y los rangos de líneas referenciados, como ExecutorRequest.java, MavenToolProvider.java, ForkedMavenExecutor.java y las pruebas relevantes. Verifica cada informe frente a las pruebas existentes y al comportamiento del proyecto antes de proponer un cambio específico; se considera terminado cuando un bug reproducido de forma independiente tiene una corrección específica y una prueba de regresión.
Escrito por el modelo de indexación a partir del texto del issue.
Descripción
Affected version
1.0.0
These were all pulled out by throwing the code at an LLM. This issue lists multiple independent bugs. If anyone wants to work on any of these, note it here and open a new issue just for that bug. Be careful that some of these are likely false reports, though closing those is also useful work.
Bug description
Bug Report: maven-executor
HIGH SEVERITY
-
toBuilder().argument(String) throws UnsupportedOperationException
ExecutorRequest.java:150-165, 249-255
toBuilder() passes arguments() (an unmodifiable list from Impl)
into the Builder constructor,
which stores the reference directly. When argument(String) is
called, it invokes
this.arguments.add(...) on the unmodifiable list, crashing at runtime. -
MAVEN_ARGS leaks to child process in ForkedMavenExecutor
ForkedMavenExecutor.java:109, 143, 149-153
Line 109 reads System.getenv("MAVEN_ARGS") from the parent process.
Line 143 does
env.remove("MAVEN_ARGS"), but env is a local HashMap containing
only request-specified
variables, not the parent process environment. Line 152 calls
pb.environment().putAll(env)
but MAVEN_ARGS from the parent is never removed from the inherited
environment, so the
child process also inherits it. -
extractMTPSingleArgument throws StringIndexOutOfBoundsException
MavenToolProvider.java (java9):146
When an argument like -MEX-mavenHome is passed without = and a value,
argument.substring(key.length() + 1) throws StringIndexOutOfBoundsException. -
Null values from extractMTPMapArgument produce string "null" in output
MavenToolProvider.java (java9):165-169 ->
ForkedMavenExecutor.java:127 -> DockerExeExecutor.java:91
When -MEX-env=MY_VAR is passed without a =value, the map stores
null. This propagates to
"MY_VAR=null" in DockerExeExecutor and "-Dkey=null" in ForkedMavenExecutor. -
ToolboxExecutorTool.doExecute() uses request.stdOut() (an
OutputStream reference) instead
of result.stdOutString() in error messages
ToolboxExecutorTool.java:144-146
The error message prints request.stdOut().orElse(null) which
returns the OutputStream object
(e.g., java.io.ByteArrayOutputStream@123456), not the captured
output. The actual stdout/stderr
content is in result.stdOutString()/result.stdErrString() but is never read.
MEDIUM SEVERITY
-
stdIn InputStream is never closed (resource leak)
ProcessBuilderExecutorSupport.java:149-158
In the stdinPump thread, the stdIn InputStream is read from but
never closed. The
try-with-resources only closes in (the process's OutputStream). The
Javadoc says
"The stream is closed once tool execution is finished" but this
does not happen. -
fs4WithDollar test uses MAVEN3_HOME instead of MAVEN4_HOME (copy-paste error)
MavenExecutorTestSupport.java:329
The @Disabled test fs4WithDollar (intended for Maven 4) references
Environment.MAVEN3_HOME
at line 329. -
System.setProperties(null) creates thread-safety window
EmbeddedMavenExecutor.java:383
prepareProperties() calls System.setProperties(null) followed by
properties.putAll(System.getProperties()). Between these two calls,
any concurrent thread
accessing System.getProperties() may get null or empty properties. -
ExecutorHelperImpl.close() does not catch RuntimeException from
executor close()
ExecutorHelperImpl.java:88-109
Only ExecutorException is caught when closing executors. If an
executor's close() throws
a RuntimeException (e.g., NullPointerException), it propagates
immediately and prevents
subsequent executors from being closed. -
UncheckedIOException not wrapped as ExecutorException in
TestContainersExecutor
TestContainersExecutor.java:161-166
detectUid() wraps IOException in UncheckedIOException (a
RuntimeException). The execute()
method's catch blocks only catch IOException. The
UncheckedIOException propagates uncaught. -
NPE if resource files are missing in TestProjects.createSimpleProject
TestProjects.java:37, 40
TestProjects.class.getResourceAsStream(...) can return null, and
Files.copy(InputStream, Path)
will throw NullPointerException instead of a clear "resource not
found" message.
LOW SEVERITY
-
extractMTPSingleArgument removes ALL matching arguments, not just the first
MavenToolProvider.java (java9):145
allArguments.removeIf(s -> s.equals(argument)) removes every
occurrence, silently
discarding duplicates. -
Builder.stdOut()/stdErr() don't clear the other stream
ExecutorRequest.java:324-334
Setting stdOut(...) sets grabOutputAsString = false but does not
clear this.stdErr,
and vice versa. -
Temp directory deletion may fail in ForkedMavenExecutor.mavenVersion()
ForkedMavenExecutor.java:74, 93
Files.createTempDirectory(...) is deleted in finally via
Files.deleteIfExists(cwd), but
if the Maven process creates files inside this directory, the
delete fails with
DirectoryNotEmptyException. -
nullInputStream.read(byte[], int, int) violates InputStream contract
IOTools.java:83-89
The read(byte[], int, int) contract requires throwing
IndexOutOfBoundsException if off is
negative, len is negative, or off + len > b.length. No bounds
validation is performed. -
Deprecated ToolboxExecutorTool(Executor) hardcodes 0.15.8 vs current 0.15.14
ToolboxExecutorTool.java:53-56
The deprecated constructor uses an old cemented version while the
POM defines
version.toolbox as 0.15.14. -
@DisabledOnOs comment vs annotation mismatch in Docker provider tests
TestContainersExecutorTest.java:38, DockerExeExecutorTest.java:38
Comment says "not supported on Windows" but annotation also
disables on OS.MAC.
- Lenguaje dominante
- Java
- Estrellas
- 5
- Forks
- 4
- Merge medio
- 3 d 2 h
- PR fusionados (30 d)
- 4
Preparar el entorno
- Sin Dockerfile ni archivo de Docker Compose
- Tiene una plantilla de pull request
- Sin guía de contribución
Primeros pasos
- Lee el issue completo y luego la guía de contribución del proyecto.
- Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
- Haz un fork del repositorio y trabaja en una rama.
- Abre un pull request que haga referencia al número del issue.
Más de apache/maven-executor
-
Provide JUnit5 extensionAbiertoenhancement
Dificultad 5/5 Más de una semana Aptitud para principiantes 35/100
apache/maven-executor#20 ·
Los mantenedores suelen responder en 5 días
-
enhancement
Dificultad 5/5 Más de una semana Aptitud para principiantes 35/100
apache/maven-executor#19 · 1 comentario ·
Los mantenedores suelen responder en 5 días
-
Expand build instructionsAbiertodocumentation
Dificultad 3/5 1-2 días Aptitud para principiantes 64/100
apache/maven-executor#18 ·
Los mantenedores suelen responder en 5 días
-
Dificultad 5/5 Más de una semana Aptitud para principiantes 30/100
apache/maven-executor#1 · 1 comentario ·
Los mantenedores suelen responder en 5 días
Todos los issues de apache/maven-executor
Issues similares
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 72/100
quelea-projection/Quelea#711 ·
-
bug pdd
Dificultad 2/5 Menos de una hora Aptitud para principiantes 67/100
objectionary/eo#9450 ·
Los mantenedores suelen responder en 1 día
-
[EC2] DescribeAvailabilityZones should return real AWS error for unknown zone namePosiblemente ocupada @omatheusmesmo la tomó hoy. Abierto
Dificultad 2/5 1-3 horas Aptitud para principiantes 75/100
Los mantenedores suelen responder en 1 día
-
area: core good first issue type: enhancement
Dificultad 2/5 1-3 horas Aptitud para principiantes 68/100
-
enhancement
Dificultad 2/5 1-3 horas Aptitud para principiantes 78/100
ShaftHQ/SHAFT_ENGINE#6909 ·
Los mantenedores suelen responder en 1 día