You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@kylin.apache.org by "ASF subversion and git services (Jira)" <ji...@apache.org> on 2022/12/05 10:21:00 UTC

[jira] [Commented] (KYLIN-5326) Parameter type validation needs to be forward compatible

    [ https://issues.apache.org/jira/browse/KYLIN-5326?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17643238#comment-17643238 ] 

ASF subversion and git services commented on KYLIN-5326:
--------------------------------------------------------

Commit 21a6b9f7f611d8d4a23a8003abbcc139e687c394 in kylin's branch refs/heads/kylin5 from Jiale He
[ https://gitbox.apache.org/repos/asf?p=kylin.git;h=21a6b9f7f6 ]

KYLIN-5326 Fix request parameter json deserializer


> Parameter type validation needs to be forward compatible
> --------------------------------------------------------
>
>                 Key: KYLIN-5326
>                 URL: https://issues.apache.org/jira/browse/KYLIN-5326
>             Project: Kylin
>          Issue Type: Bug
>          Components: REST Service
>            Reporter: Jiale He
>            Priority: Major
>             Fix For: 5.0-alpha
>
>
> 部分涉及到参数类型校验的,如boolean、int类型,需要能兼容历史版本。
>  
> h1. Fix Design
> {{springboot 原本行为:}}
>  * {{boolean}}
>  ** {{null -> false}}
>  ** {{"null" -> false}}
>  ** {{"" -> false}}
>  ** {{"true" -> true}}
>  ** {{"false" -> false}}
>  ** {{"TRUE" -> true}}
>  ** {{"FALSE" -> false}}
>  ** {{"NULL" -> 报错}}
>  ** {{NULL -> 报错}}
>  ** {{"abc" -> 报错}}
>  ** {{不输入 -> 代码中指定的默认值}}
>  * {{int}}
>  ** {{null -> 0}}
>  ** {{"null" -> 0}}
>  ** {{"" -> 0}}
>  ** {{"1" -> 1}}
>  ** {{"2" -> 2}}
>  ** {{"NULL" -> 报错}}
>  ** {{NULL -> 报错}}
>  ** {{"abc" -> 报错}}
>  ** {{1.22 -> 报错}}
>  ** {{不输入 -> 代码中指定的默认值}}
> {{这次我改完之后,也是遵循这个规则。}}



--
This message was sent by Atlassian Jira
(v8.20.10#820010)