You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit d05fec8
Browse filesBrowse the repository at this point in the historyBrowse files
fix: harden upstream URL handling — transaction atomicity, host:port fallback, port validation, and defensive parse
- Listener: rethrow after LOG.error in handleUpdated/handleDeleted so @transactional
rollback works instead of silently committing partial batches.
- Service layer: add matchByHostAndPort fallback in deleteBySelectorIdAndUrl and
changeStatusBySelectorIdAndUrl so old-format records (missing port, unbracketed
IPv6) can be deleted/status-toggled via the REST path, matching the listener path.
- Transfer layer: catch IllegalArgumentException in mapToCommonUpstream and
mapToDiscoveryUpstreamData; log and return null instead of breaking the entire
stream. Callers in UpstreamCheckService filter null.
- IpUtils.parseHostPort: validate port is numeric and in range 1–65535 at the parse
boundary; prevents NumberFormatException from propagating through normalizeUrl.
- Tests: add 11 round-trip normalizeUrl tests (hostname, IPv4, IPv6, IPv6 zone-id,
plus error paths for non-numeric and out-of-range ports).
Co-Authored-By: Claude Opus 4.7 <[email protected]>
0 commit comments