Matrix parameters are not encoded correctly
维护者通常 1 天内回复
@OlgaMaciaszek 已经在做这个了。
开始于 2020年9月14日。
评估
这个 Issue 还没有评估数据。
描述
(This leads on from https://github.com/spring-cloud/spring-cloud-openfeign/issues/334 - apologies but at the time I didn't have enough spare time to create a sample application, but I now have).
When I try to use matrix parameters and Hoxton.SR7, they are encoded incorrectly. For example, assuming I have the folloing Feign client interface:
@FeignClient(url = "http://localhost:8080", name="name")
public interface FeignDemo {
@GetMapping(value = "/api/server{account}")
void server(@MatrixVariable("account") String account);
}
when making requests the URL is resolved as http://localhost:8080/api/server%3Baccount%3Da rather than the expected http://localhost:8080/api/server;account=a`:
2020-08-17 17:01:45.519 ERROR 23616 --- [nio-8080-exec-2] o.a.c.c.C.[.[.[/].[dispatcherServlet] : Servlet.service() for servlet [dispatcherServlet] in context with path [] threw exception [Request processing failed; nested exception is feign.FeignException$BadRequest: [400] during [GET] to [http://localhost:8080/api/server%3Baccount%3Da] [FeignDemo#server(String)]: [{"timestamp":"2020-08-17T16:01:45.484+00:00","status":400,"error":"Bad Request","message":"","path":"/api/server%3Baccount%3Da"}]] with root cause
feign.FeignException$BadRequest: [400] during [GET] to [http://localhost:8080/api/server%3Baccount%3Da] [FeignDemo#server(String)]: [{"timestamp":"2020-08-17T16:01:45.484+00:00","status":400,"error":"Bad Request","message":"","path":"/api/server%3Baccount%3Da"}]
I have written the sample project https://github.com/nickcodefresh/spring-cloud-openfeign-334 to demo this issue. If you start the application and hit http://localhost:8080/api/client you'll see the error.
- 主要语言
- Java
- 星标
- 1.3k
- 派生
- 834
- 平均合并
- 3 天 6 小时
- 30 天内合并 PR
- 14
环境准备
- 没有 Dockerfile 或 Docker Compose 文件
- 没有 Pull Request 模板
- 阅读贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
spring-cloud/spring-cloud-openfeign 的其他 Issue
-
@RequestHeader overrides @PathVariable with the same name可能重新可做 @rajeshvasa 于 11 天前认领,目前没有进行中的 PR。 未关闭waiting-for-triage
难度 3/5 1-2 天 新手友好度 64/100
spring-cloud/spring-cloud-openfeign#1465 · 2 条评论 ·
维护者通常 1 天内回复
-
question
难度 4/5 3-5 天 新手友好度 35/100
spring-cloud/spring-cloud-openfeign#1392 · 1 条评论 ·
维护者通常 1 天内回复
-
FeignClientsConfiguration$MicrometerConfiguration.class cannot be opened because it does not exist未关闭feedback-provided
难度 4/5 3-5 天 新手友好度 35/100
spring-cloud/spring-cloud-openfeign#1379 · 5 条评论 ·
维护者通常 1 天内回复
-
waiting-for-triage
难度 3/5 1-2 天 新手友好度 45/100
spring-cloud/spring-cloud-openfeign#1340 · 1 条评论 ·
维护者通常 1 天内回复
-
dependencies
难度 3/5 1-2 天 新手友好度 55/100
spring-cloud/spring-cloud-openfeign#1334 · 11 条评论 · 4 个 reaction ·
维护者通常 1 天内回复
查看 spring-cloud/spring-cloud-openfeign 的全部 Issue
相似的 Issue
-
Add contributing guide可能已有人在做 @WadekarPrashant 今天认领。 未关闭good first issue
难度 1/5 1-3 小时 新手友好度 88/100
jenkinsci/gitea-checks-plugin#382 · 1 条评论 ·
-
enhancement infra
难度 2/5 1-3 小时 新手友好度 67/100
维护者通常 1 天内回复
-
5.0.x backport bug
难度 1/5 1 小时以内 新手友好度 68/100
spring-cloud/spring-cloud-function#1569 ·
维护者通常 1 天内回复
-
Move the spring-cloud-commons version and BOM import from the bus parent to the stream parent可能已有人在做 @olegz 今天认领。 未关闭task
难度 2/5 1-3 小时 新手友好度 74/100
spring-cloud/spring-cloud-stream#3355 ·
维护者通常 1 天内回复
-
bug untriaged
难度 2/5 1-3 小时 新手友好度 72/100
opensearch-project/opensearch-java#2342 ·
维护者通常 1 天内回复