spring-cloud-gateway icon indicating copy to clipboard operation
spring-cloud-gateway copied to clipboard

Invalid shortcut field order configuration in circuit breaker filter factory

Open muchnik opened this issue 2 months ago • 1 comments

Hi,

We are building Spring Cloud Gateway with filters based on a database configuration. However, we’re facing issues when creating the CircuitBreaker filter due to missing parameters in the shortcut field order.

We expect the filter to be properly constructed from our configuration, but all parameters except "name" are being ignored because they are not included in the shortcut field order.

Here’s the the problem in SpringCloudCircuitBreakerFilterFactory:

	@Override
	public List<String> shortcutFieldOrder() {
		return singletonList(NAME_KEY);
	}

And other parameters in Config

	public static class Config implements HasRouteId {

		private String name;

		private URI fallbackUri;

		private String routeId;

		private Set<String> statusCodes = new HashSet<>();

		private boolean resumeWithoutError = false;

muchnik avatar Nov 11 '25 15:11 muchnik

Followed by PR https://github.com/spring-cloud/spring-cloud-gateway/pull/3975

muchnik avatar Nov 11 '25 15:11 muchnik