UriUtils ignores allowReservedCharacters=false when the input has no percent triplet
Los mantenedores suelen responder en 1 día
Evaluación
- Dificultad
- 2/5
- Tiempo estimado
- 1-3 horas
- Aptitud para principiantes
- 78/100
Línea de trabajo
Lee UriUtils y su conjunto de pruebas existente UriUtilsTest; el informe señala la rama sin tripletes de encodeInternal y el indicador codificado de forma fija que se pasa a encodeChunk. Ejecuta las pruebas indicadas en el informe y añade pruebas de regresión para las sobrecargas booleanas, incluida una entrada no ASCII. El trabajo estará terminado cuando false codifique los caracteres reservados sin procesar, se conserven los tripletes %XX existentes y las sobrecargas con true y sin indicador mantengan su comportamiento; el issue también menciona el changelog.
Escrito por el modelo de indexación a partir del texto del issue.
Descripción
UriUtils.encode("a&b=c", false) returns a&b=c, whereas the corresponding call with an existing triplet, UriUtils.encode("a&b=c%20", false), encodes the raw reserved characters. The no-triplet branch in encodeInternal passes a hard-coded true to encodeChunk instead of the argument.
Expected: a%26b%3Dc when the flag is false; existing %XX triplets should still be preserved. The true-flag and flagless overloads keep their current behavior. This concerns the existing boolean contract, separate from #2002's discussion of double encoding.
Reproduced on current master with UriUtilsTest: 32 tests, four failures, no errors or skips. The failing cases include both boolean overloads and non-ASCII input. Main sources compile with JDK 8 and tests run with actual JDK 25 using the project's dev profile.
I will pass the flag through in that branch and add these regressions. The scope is UriUtils, its existing test suite, and the changelog; no URI-template expansion or query collection changes.
Reproduction and report prepared and posted by an AI assistant for @hutiefang76.
- Lenguaje dominante
- Java
- Estrellas
- 9.8k
- Forks
- 2k
- Merge medio
- 1 h 23 min
- PR fusionados (30 d)
- 31
Preparar el entorno
- Sin Dockerfile ni archivo de Docker Compose
- Sin plantilla de pull request
- Leer la 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 OpenFeign/feign
-
DefaultAsyncClient never completes the returned future when Client throws ErrorPosiblemente ocupada @hutiefang76 la tomó hace 17 días. Abierto
Dificultad 2/5 1-3 horas Aptitud para principiantes 76/100
Los mantenedores suelen responder en 1 día
-
Response.charset ignores charset after another Content-Type parameterPosiblemente ocupada @hutiefang76 la tomó hace 17 días. Abierto
Dificultad 2/5 1-3 horas Aptitud para principiantes 76/100
Los mantenedores suelen responder en 1 día
-
Java11 Http2Client loses response header value order and duplicate occurrencesPosiblemente ocupada @hutiefang76 la tomó hace 16 días. Abierto
Dificultad 2/5 1-3 horas Aptitud para principiantes 35/100
Los mantenedores suelen responder en 1 día
-
Java11 Http2Client rejects documented zero connect and read timeoutsPosiblemente ocupada @hutiefang76 la tomó hace 16 días. Abierto
Dificultad 2/5 1-3 horas Aptitud para principiantes 35/100
Los mantenedores suelen responder en 1 día
-
Query values are split at literal commas or lost when arrays are usedPosiblemente ocupada @hutiefang76 la tomó hace 18 días. Abierto
Dificultad 3/5 1-2 días Aptitud para principiantes 68/100
Los mantenedores suelen responder en 1 día
Todos los issues de OpenFeign/feign
Issues similares
-
Type: Bug
Dificultad 2/5 1-3 horas Aptitud para principiantes 76/100
Los mantenedores suelen responder en 1 día
-
MCP add-on: JSON responses with non-ASCII characters are truncated (wrong Content-Length)Posiblemente ocupada @dhanushbs10 la tomó hoy. Abiertoadd-on bug in:mcp
Dificultad 2/5 1-3 horas Aptitud para principiantes 78/100
Los mantenedores suelen responder en 1 día
-
vaadin-map
Dificultad 2/5 1-3 horas Aptitud para principiantes 70/100
vaadin/flow-components#10586 ·
Los mantenedores suelen responder en 1 día
-
WeReadInstaller writes the launcher database on the main thread at handover (Activity pause timeout)Abiertobug good first issue
Dificultad 2/5 1-3 horas Aptitud para principiantes 70/100
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 63/100
wpilibsuite/SystemcoreTesting#446 ·
Los mantenedores suelen responder en 1 día