Repository navigation
Commit f0a26bf
fix: add null/blank guard to parseHostPort and normalizeUrl
- IpUtils.parseHostPort: throw IllegalArgumentException for null/blank input
instead of NPE
- CommonUpstreamUtils.normalizeUrl: same guard for a clear error at the
public API boundary
- DiscoveryUpstreamServiceTest.testNativeCreate: set a URL on the DTO so
the test exercises the actual create path
Co-Authored-By: Claude Opus 4.7 <[email protected]>1 parent 50ec9a9 commit f0a26bf
3 files changed
Lines changed: 7 additions & 0 deletions
File tree
- shenyu-admin/src
- main/java/org/apache/shenyu/admin/utils
- test/java/org/apache/shenyu/admin/service
- shenyu-common/src/main/java/org/apache/shenyu/common/utils
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
296 | 296 | | |
297 | 297 | | |
298 | 298 | | |
| 299 | + | |
| 300 | + | |
| 301 | + | |
299 | 302 | | |
300 | 303 | | |
301 | 304 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
202 | 202 | | |
203 | 203 | | |
204 | 204 | | |
| 205 | + | |
205 | 206 | | |
206 | 207 | | |
207 | 208 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
426 | 426 | | |
427 | 427 | | |
428 | 428 | | |
| 429 | + | |
| 430 | + | |
| 431 | + | |
429 | 432 | | |
430 | 433 | | |
431 | 434 | | |
| |||
0 commit comments