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

[I] [Bug] Request method 'GET' not supported [dubbo]

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

   ### Pre-check
   
   - [x] I am sure that all the content I provide is in English.
   
   
   ### Search before asking
   
   - [x] I had searched in the [issues](https://github.com/apache/dubbo/issues?q=is%3Aissue) and found no similar issues.
   
   
   ### Apache Dubbo Component
   
   Java SDK (apache/dubbo)
   
   ### Dubbo Version
   
   dubbo version: 3.3.5 
   Oracle OpenJDK 21.0.3 
   Windows10 Intellij IDEA
   
   ### Steps to reproduce this issue
   
   ```
   @RequestMapping("/demo")
   public interface DemoService {
   
       @GetMapping("/{id}")
       String getId(@PathVariable Integer id);
   
       @DeleteMapping("/{id}")
       String deleteById(@PathVariable Integer id);
   }
   ```
   
   ```
   @DubboService
   public class DemoServiceImpl implements DemoService {
      
       private static final String PREFIX = "Hello ";
   
   
       @Override
       public String getId(Integer id) {
           return  PREFIX + id;
       }
   
       @Override
       public String deleteById(Integer id) {
           return  PREFIX + id;
       }
   ```
   
   ### What you expected to happen
   
   When the  path variable is consistent, the get method cannot appear together with the delete method
   Calling the get method will result in an error,but the delete method won't
   {
     "message": "Request method 'GET' not supported",
     "status": "405"
   }
   
   But when the path variable is different,one is `/get/{id}`, and the other is `/delete/{id}`,This will not cause any errors
   ```
    @GetMapping("/get/{id}")
     String getId(@PathVariable Integer id);
   
    @DeleteMapping("/delete/{id}")
     String deleteById(@PathVariable Integer id);
   
   ```
   
   ### 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
   
   - [x] I agree to follow this project's [Code of Conduct](https://www.apache.org/foundation/policies/conduct)
   


-- 
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


Re: [I] [Bug] Request method 'GET' not supported [dubbo]

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

   is already fixed by https://github.com/apache/dubbo/issues/15433


-- 
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] [Bug] Request method 'GET' not supported [dubbo]

Posted by "zrlw (via GitHub)" <gi...@apache.org>.
zrlw closed issue #15579: [Bug] Request method 'GET' not supported
URL: https://github.com/apache/dubbo/issues/15579


-- 
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] [Bug] Request method 'GET' not supported [dubbo]

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

   the cause is the values field of RadixTree.Node records only one pair for the path  `/demo/{id}` , it does not record `GET` 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