spring-cloud/spring-cloud-gateway

Validate route uri

Open

#131 建立於 2017年12月12日

在 GitHub 查看
 (14 留言) (0 反應) (0 負責人)Java (3,204 fork)batch import
enhancementhelp wanted

倉庫指標

Star
 (4,284 star)
PR 合併指標
 (平均合併 1天 21小時) (30 天內合併 18 個 PR)

描述

Writeup and example: https://github.com/RyanBard/scg-npe

spring-cloud-gateway version: 2.0.0.M5 spring-boot-version: 2.0.0.M7

I'm getting a NullPointerException in NettyRoutingFilter on line 67 because scheme is null. It's possible that my configuration in my application.yml is bogus (the uri and predicate Path do not match -- EDIT: I've verified that it still fails for the same reason even if they do overlap), however, it looks like the overwriting of scheme in the UriComponentsBuilder calls in RouteToRequestUrlFilter could be problematic in other situations.

I would appreciate if you could take a look.

Thank you

貢獻者指南