Skip to content

Invalid shortcut field order configuration in circuit breaker filter factory #3974

@muchnik

Description

@muchnik

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;

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions