You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@kylin.apache.org by "Jiale He (Jira)" <ji...@apache.org> on 2022/12/01 10:39:00 UTC
[jira] [Created] (KYLIN-5326) Parameter type validation needs to be forward compatible
Jiale He created KYLIN-5326:
-------------------------------
Summary: 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
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)