Skip to content

The Bug:The method isValidRule(GatewayFlowRule rule) in GatewayRuleManager.class has a invalid check. #2595

@rabbitloveLHF

Description

@rabbitloveLHF

Type: Bug Report
The method isValidRule(GatewayFlowRule rule) in GatewayRuleManager.class has a invalid check.
ControlBehavior should be checked here, not grade.

public static boolean isValidRule(GatewayFlowRule rule) {
    if (rule.getGrade() == RuleConstant.CONTROL_BEHAVIOR_RATE_LIMITER
            && rule.getMaxQueueingTimeoutMs() < 0) {
        return false;
    }
}

The sentinel version is 1.8.1

Metadata

Metadata

Assignees

No one assigned

    Labels

    area/gateway-flow-controlIssues or PRs related to API gateway flow controlgood first issueGood for newcomerskind/bugCategory issues or prs related to bug.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions