You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@dubbo.apache.org by "xhhong211 (via GitHub)" <gi...@apache.org> on 2023/09/07 08:08:28 UTC

[GitHub] [dubbo] xhhong211 opened a new issue, #13018: 为什么PathMatcher的getInvokeCreatePathMatcher要返回一个noNeeHttpMethodComapre()

xhhong211 opened a new issue, #13018:
URL: https://github.com/apache/dubbo/issues/13018

   <!-- If you need to report a security issue please visit https://github.com/apache/dubbo/security/policy -->
   
   - [ ] I have searched the [issues](https://github.com/apache/dubbo/issues) of this repository and believe that this is not a duplicate.
   
   ### Environment
   
   * Dubbo version: 3.2.5
   * Operating System version: Windows 11
   * Java version: 1.8
   
   ### Steps to reproduce this issue
   
   ```java
    public static PathMatcher getInvokeCreatePathMatcher(String path, String version, String group, Integer port, String method) {
           return new PathMatcher(path, version, group, port, method).noNeedHttpMethodCompare();
       }
   ```
   
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@dubbo.apache.org.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@dubbo.apache.org
For additional commands, e-mail: notifications-help@dubbo.apache.org


[GitHub] [dubbo] xhhong211 commented on issue #13018: 为什么PathMatcher的getInvokeCreatePathMatcher要返回一个noNeeHttpMethodComapre()

Posted by "xhhong211 (via GitHub)" <gi...@apache.org>.
xhhong211 commented on issue #13018:
URL: https://github.com/apache/dubbo/issues/13018#issuecomment-1710947216

   > 可以依据Method进行区分,它还有一个方法重载是要求区分的。使用这个方法不区分方法类型只是为了判断是否存在请求路径相同的接口。
   ---
   ServiceInvokeRestFilter中的doHandler调用的是这个方法,造成现在不能通过METHOD区分请求,有什么解决方法?
   ```java
       private void doHandler(HttpRequest nettyHttpRequest,
                              NettyHttpResponse nettyHttpResponse,
                              RequestFacade request,
                              URL url,
                              ServiceDeployer serviceDeployer) throws Exception {
           //  acquire metadata by request
           InvokerAndRestMethodMetadataPair restMethodMetadataPair = RestRPCInvocationUtil.getRestMethodMetadataAndInvokerPair(request);
   
   ```


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@dubbo.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@dubbo.apache.org
For additional commands, e-mail: notifications-help@dubbo.apache.org


[GitHub] [dubbo] NingleXu commented on issue #13018: 为什么PathMatcher的getInvokeCreatePathMatcher要返回一个noNeeHttpMethodComapre()

Posted by "NingleXu (via GitHub)" <gi...@apache.org>.
NingleXu commented on issue #13018:
URL: https://github.com/apache/dubbo/issues/13018#issuecomment-1709887339

   可以依据Method进行区分,它还有一个方法重载是要求区分的。使用这个方法不区分方法类型只是为了判断是否存在请求路径相同的接口。


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@dubbo.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@dubbo.apache.org
For additional commands, e-mail: notifications-help@dubbo.apache.org


Re: [I] 为什么PathMatcher的getInvokeCreatePathMatcher要返回一个noNeeHttpMethodComapre() [dubbo]

Posted by "AlbumenJ (via GitHub)" <gi...@apache.org>.
AlbumenJ commented on issue #13018:
URL: https://github.com/apache/dubbo/issues/13018#issuecomment-1987679392

   No news is good news. Please feel free to create a new issue if you have any question.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@dubbo.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@dubbo.apache.org
For additional commands, e-mail: notifications-help@dubbo.apache.org


Re: [I] 为什么PathMatcher的getInvokeCreatePathMatcher要返回一个noNeeHttpMethodComapre() [dubbo]

Posted by "CrazyHZM (via GitHub)" <gi...@apache.org>.
CrazyHZM commented on issue #13018:
URL: https://github.com/apache/dubbo/issues/13018#issuecomment-1870410493

   @xhhong211 
   Could you try it in the latest version?


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@dubbo.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@dubbo.apache.org
For additional commands, e-mail: notifications-help@dubbo.apache.org


Re: [I] 为什么PathMatcher的getInvokeCreatePathMatcher要返回一个noNeeHttpMethodComapre() [dubbo]

Posted by "AlbumenJ (via GitHub)" <gi...@apache.org>.
AlbumenJ closed issue #13018: 为什么PathMatcher的getInvokeCreatePathMatcher要返回一个noNeeHttpMethodComapre()
URL: https://github.com/apache/dubbo/issues/13018


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@dubbo.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@dubbo.apache.org
For additional commands, e-mail: notifications-help@dubbo.apache.org