Skip to content

move ContextFilter's order to the lowest, avoid RpcContext be cleared #5842

@haiyang1985

Description

@haiyang1985
  • I have searched the issues of this repository and believe that this is not a duplicate.
  • I have checked the FAQ of this repository and believe that this is not a duplicate.

Environment

  • Dubbo version: 2.7.3
  • Operating System version: macOs
  • Java version: 1.8

Steps to reproduce this issue

Step 1: Extend AuthFilter with order -20000.

@Activate(group = CommonConstants.PROVIDER, order = -20000)
public class AuthFilter Filter {

    @Override
    public Result invoke(Invoker<?> invoker, Invocation inv) throws RpcException {
    }
}

Step 2: We are not able to get RpcContext from the filter as ContextFilter cleared it with order -10000.

We shoudl move ContextFilter to the lowest one, leave more range for the user's extension.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions