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/11/25 13:51:54 UTC

[GitHub] [dubbo] testwangchao opened a new issue #9320: dubbo version 2.7.13,Telnet调用提示ls disabled for security reasons, please enable support by listing the commands through 'telnet'

testwangchao opened a new issue #9320:
URL: https://github.com/apache/dubbo/issues/9320


   telnet localhost 20881
   ```
   dubbo>ls
   Command: ls disabled for security reasons, please enable support by listing the commands through 'telnet'
   ```
   这个是什么原因呀


-- 
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] Darian1996 commented on issue #9320: dubbo version 2.7.13,Telnet调用提示ls disabled for security reasons, please enable support by listing the commands through 'telnet'

Posted by GitBox <gi...@apache.org>.
Darian1996 commented on issue #9320:
URL: https://github.com/apache/dubbo/issues/9320#issuecomment-1015021598


   2.7.13 的 dubbo 的 qos
   
   ```java
    if (extensionLoader.hasExtension(command)) {
    if (extensionLoader.hasExtension(command)) {
                   if (commandEnabled(channel.getUrl(), command)) {
                       try {
                           String result = extensionLoader.getExtension(command).telnet(channel, message);
                           if (result == null) {
                               return null;
                           }
                           buf.append(result);
                       } catch (Throwable t) {
                           buf.append(t.getMessage());
                       }
                   } else {
                       buf.append("Command: ");
                       buf.append(command);
                       buf.append(" disabled for security reasons, please enable support by listing the commands through 'telnet'");
                   }
               } else {
                   buf.append("Unsupported command: ");
                   buf.append(command);
               }
   }
   ```
   
   
   ```java
   
    private boolean commandEnabled(URL url, String command) {
           String supportCommands = url.getParameter(TELNET);
           if (StringUtils.isEmpty(supportCommands)) {
               return false;
           }
           String[] commands = COMMA_SPLIT_PATTERN.split(supportCommands);
           for (String c : commands) {
               if (command.equals(c)) {
                   return true;
               }
           }
           return false;
       }
   
   ```
   
   
   ![image](https://user-images.githubusercontent.com/37619525/149859560-fc0a6554-f8b6-4c31-8f46-316f77ae26b6.png)
   
   
   在下边校验的时候出错了。
   
   
   
   
   
   
   
   
   


-- 
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] baymax55 commented on issue #9320: dubbo version 2.7.13,Telnet调用提示ls disabled for security reasons, please enable support by listing the commands through 'telnet'

Posted by GitBox <gi...@apache.org>.
baymax55 commented on issue #9320:
URL: https://github.com/apache/dubbo/issues/9320#issuecomment-992178301


   try it!
   dubbo.provider.telnet: ls,ps,cd,pwd,trace,count,invoke,select,status,log,help,clear,exit,shutdown


-- 
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] BurningCN commented on issue #9320: dubbo version 2.7.13,Telnet调用提示ls disabled for security reasons, please enable support by listing the commands through 'telnet'

Posted by GitBox <gi...@apache.org>.
BurningCN commented on issue #9320:
URL: https://github.com/apache/dubbo/issues/9320#issuecomment-979659040


   尝试使用3.0最新版试下呢,另外ls命令只能在qos开启的情况下有效
   https://dubbo.apache.org/zh/docs/v2.7/user/references/qos/
   


-- 
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] yuequan1997 commented on issue #9320: dubbo version 2.7.13,Telnet调用提示ls disabled for security reasons, please enable support by listing the commands through 'telnet'

Posted by GitBox <gi...@apache.org>.
yuequan1997 commented on issue #9320:
URL: https://github.com/apache/dubbo/issues/9320#issuecomment-1049561571


   先说解决 直接添加配置,dubbo.provider.telnet = ls,ps,cd,pwd,trace,count,invoke,select,status,log,help,clear,exit,shutdown  配置解决
   
   Dubbo 在telnet的时候加了判断,会判断Provider上的信息,如果没配置现在是无法telnet了的哈


-- 
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] testwangchao commented on issue #9320: dubbo version 2.7.13,Telnet调用提示ls disabled for security reasons, please enable support by listing the commands through 'telnet'

Posted by GitBox <gi...@apache.org>.
testwangchao commented on issue #9320:
URL: https://github.com/apache/dubbo/issues/9320#issuecomment-979778502


   > 
   使用protobuf序列化的话,是不是不支持Telnet调用


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