Cleanup: strip trailing slashes without a regex (GitHubActionsSummary, TestRail, Xray)

Abierto
#274 2 comentarios 0 reacciones 1 asignado Ver en GitHub

Los mantenedores suelen responder en 1 día

@Omartarek876 ya está trabajando en esto.

Desde el 22/11/2026.

Evaluación

Este issue todavía no se ha evaluado.

Descripción

good first issue

Part of the cleanup cycle from #251. SonarCloud rule java:S8786 flags replaceAll("/+$", "") as a regex that can backtrack badly on input with many slashes. The input here is config, so this is not a real risk, but the fix is small and clears the warning.

Where (line numbers as of master 5ddc2a4):

  • src/main/java/com/seleniumboot/ci/GitHubActionsSummary.java: line 97
  • src/main/java/com/seleniumboot/testmanagement/TestRailClient.java: line 29
  • src/main/java/com/seleniumboot/testmanagement/XrayClient.java: line 61

Fix: strip trailing slashes without a regex, for example a small loop or while (s.endsWith("/")) s = s.substring(0, s.length() - 1);. Keep the exact behaviour: "http://x///" → "http://x", "target/" → "target".

Done when: the three spots no longer use the regex, a unit test covers multiple trailing slashes, and mvn test passes. #256 touches the TestRail / Xray files too, so rebase on master if it merges first.

Lenguaje dominante
Java
Estrellas
12
Forks
6
Merge medio
8 h 58 min
PR fusionados (30 d)
63

Preparar el entorno

Primeros pasos

  1. Lee el issue completo y luego la guía de contribución del proyecto.
  2. Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
  3. Haz un fork del repositorio y trabaja en una rama.
  4. Abre un pull request que haga referencia al número del issue.

Más de seleniumboot/selenium-boot

Todos los issues de seleniumboot/selenium-boot

Issues similares

Más issues de Java

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.