You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@dubbo.apache.org by GitBox <gi...@apache.org> on 2021/07/13 15:49:45 UTC

[GitHub] [dubbo] xiaoheng1 opened a new issue #8285: Fix org.apache.dubbo.common.url.component.URLAddress#parse method to judge the isPathAddress problem

xiaoheng1 opened a new issue #8285:
URL: https://github.com/apache/dubbo/issues/8285


   - [ ] I have searched the [issues](https://github.com/apache/dubbo/issues) of this repository and believe that this is not a duplicate.
   - [ ] I have checked the [FAQ](https://github.com/apache/dubbo/blob/master/FAQ.md) of this repository and believe that this is not a duplicate.
   
   ### Environment
   
   * Dubbo version: 3.0
   * Operating System version: mcos
   * Java version: 1.8
   
   For example: 
   
   234e:0:4567::3d:ee:8080, it may lead to createPathURLAddress logic.
   
   ```
   public static URLAddress parse(String rawAddress, String defaultProtocol, boolean encoded) {
           try {
               String decodeStr = rawAddress;
               if (encoded) {
                   decodeStr = URLDecoder.decode(rawAddress, "UTF-8");
               }
   
               boolean isPathAddress = !Character.isDigit(decodeStr.charAt(0));
               if (isPathAddress) {
                   return createPathURLAddress(decodeStr, rawAddress, defaultProtocol);
               }
               return createURLAddress(decodeStr, rawAddress, defaultProtocol);
           } catch (UnsupportedEncodingException e) {
               throw new RuntimeException(e.getMessage(), e);
           }
       }
   ```


-- 
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] xiaoheng1 closed issue #8285: Fix org.apache.dubbo.common.url.component.URLAddress#parse method to judge the isPathAddress problem

Posted by GitBox <gi...@apache.org>.
xiaoheng1 closed issue #8285:
URL: https://github.com/apache/dubbo/issues/8285


   


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