Skip to content

[Bug] RequestMapping error  #14778

@smalltalkhyb

Description

@smalltalkhyb

Pre-check

  • I am sure that all the content I provide is in English.

Search before asking

  • I had searched in the issues and found no similar issues.

Apache Dubbo Component

Java SDK (apache/dubbo)

Dubbo Version

Dubbo 3.3.1

Steps to reproduce this issue

code

`public class RadixTreeTest {

public static void main(String[] args) {
    RadixTree<String> tree = new RadixTree<String>();
    tree.addPath("/a/*", "abc");
    tree.addPath("/ew/reach/update/{ruleId}", "");
    tree.addPath("/ew/reach/update/{ruleId}/state", "");

    List<RadixTree.Match<String>> ret= tree.match("/ew/reach/update/1222222");

    List<RadixTree.Match<String>> ret2= tree.match("/ew/reach/update/1222222/state");

    System.out.println("/ew/reach/update/1222222  size="+ret.size());

    System.out.println("/ew/reach/update/1222222/state  size="+ret2.size());
}

}`

Result :

/ew/reach/update/1222222 size=0
/ew/reach/update/1222222/state size=1

What you expected to happen

/ew/reach/update/1222222 size=1
/ew/reach/update/1222222/state size=1

Anything else

No response

Are you willing to submit a pull request to fix on your own?

  • Yes I am willing to submit a pull request on my own!

Code of Conduct

Metadata

Metadata

Assignees

Type

No type

Projects

Status

Todo

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions