777 Star 2.4K Fork 906

GVP开放金融技术 / zbus

 / 详情

RpcProcessor的findMethodByUrl方法的路径参数问题

待办的
创建于  
2022-12-14 20:46

RpcProcessor的findMethodByUrl方法里面的这段代码,如果params == null并且url.length() > urlPathMatched.length()时会把整个url认作路径参数吧

        //Body parameters goes first, only if body has no parameters, check url part
        if (params == null) {
            String subUrl = url;
            if (url.length() > urlPathMatched.length()) {
                subUrl = url.substring(urlPathMatched.length());
            }
            UrlInfo info = HttpKit.parseUrl(subUrl);
            List<Object> paramList = new ArrayList<>(info.pathList);
            if (!info.queryParamMap.isEmpty()) {
                target.queryMap = new HashMap<>(info.queryParamMap);
            }
            params = paramList.toArray();
        }

评论 (0)

DurableHumor 创建了任务
DurableHumor 修改了描述
DurableHumor 修改了描述
展开全部操作日志

登录 后才可以发表评论

状态
负责人
里程碑
Pull Requests
关联的 Pull Requests 被合并后可能会关闭此 issue
分支
开始日期   -   截止日期
-
置顶选项
优先级
参与者(1)
Java
1
https://gitee.com/openforce/zbus.git
git@gitee.com:openforce/zbus.git
openforce
zbus
zbus

搜索帮助