[ 
https://issues.apache.org/jira/browse/IGNITE-17109?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Aleksandr updated IGNITE-17109:
-------------------------------
    Description: 
Different commands given the wrong URL display different messages. For example

 
{code:java}
disconnected]> connect lkhjasdflkjhhasdf
2022-06-06 10:41:04:665 +0100 [ERROR][main][ExceptionHandler] Unhandled 
exception
java.lang.IllegalArgumentException: Expected URL scheme 'http' or 'https' but 
no colon was found
        at okhttp3.HttpUrl$Builder.parse$okhttp(HttpUrl.kt:1260)
        at okhttp3.HttpUrl$Companion.get(HttpUrl.kt:1633)
        at okhttp3.Request$Builder.url(Request.kt:184)
...
Internal error! {code}
 
{code:java}
[disconnected]> connect http://kjhasdflkjhhasdf:10300/
Api error: null
{code}
 
{code:java}
[disconnected]> sql -u=hdbkljghhgasdflkjhasdf
Connection failed. {code}
 

Test all possible variations of incorrect urls and display

 

> Error handling for invalid url passed to any command
> ----------------------------------------------------
>
>                 Key: IGNITE-17109
>                 URL: https://issues.apache.org/jira/browse/IGNITE-17109
>             Project: Ignite
>          Issue Type: Task
>            Reporter: Aleksandr
>            Priority: Major
>
> Different commands given the wrong URL display different messages. For example
>  
> {code:java}
> disconnected]> connect lkhjasdflkjhhasdf
> 2022-06-06 10:41:04:665 +0100 [ERROR][main][ExceptionHandler] Unhandled 
> exception
> java.lang.IllegalArgumentException: Expected URL scheme 'http' or 'https' but 
> no colon was found
>         at okhttp3.HttpUrl$Builder.parse$okhttp(HttpUrl.kt:1260)
>         at okhttp3.HttpUrl$Companion.get(HttpUrl.kt:1633)
>         at okhttp3.Request$Builder.url(Request.kt:184)
> ...
> Internal error! {code}
>  
> {code:java}
> [disconnected]> connect http://kjhasdflkjhhasdf:10300/
> Api error: null
> {code}
>  
> {code:java}
> [disconnected]> sql -u=hdbkljghhgasdflkjhasdf
> Connection failed. {code}
>  
> Test all possible variations of incorrect urls and display
>  



--
This message was sent by Atlassian Jira
(v8.20.7#820007)

Reply via email to