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/13 10:26:00 UTC

[jira] [Commented] (KYLIN-5334) When the optional parameter "page_offset" of the job list API is an abnormal value, the returned error message is unclear

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

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

Commit e7842ce0fc5b96cd9687e4622ee203a1d5658b88 in kylin's branch refs/heads/kylin5 from KmCherry0
[ https://gitbox.apache.org/repos/asf?p=kylin.git;h=e7842ce0fc ]

KYLIN-5334 Add verification to the parameters about post get api/jobs


> When the optional parameter "page_offset" of the job list API is an abnormal value, the returned error message is unclear
> -------------------------------------------------------------------------------------------------------------------------
>
>                 Key: KYLIN-5334
>                 URL: https://issues.apache.org/jira/browse/KYLIN-5334
>             Project: Kylin
>          Issue Type: Bug
>    Affects Versions: 5.0-alpha
>            Reporter: sibing.zhang
>            Priority: Major
>             Fix For: 5.0-alpha
>
>         Attachments: image-2022-12-05-19-59-13-386.png
>
>
> 返回任务列表API({{{}/kylin/api/jobs)的参数page_offset为非负整数外的异常值时,接口报错不明确。比如,下图中将{}}}{{{}page_offset置为abc,接口返回的错误信息不友好。{}}}
> !image-2022-12-05-19-59-13-386.png|width=1047,height=181!
> *root cause:*
> 获取任务接口未对参数{{{}page_offset{}}}、{{{}page_size{}}}做校验导致。
> *fix design:*
> 在接口中增加{{{}page_offset{}}} {{page_size}} 参数的校验。



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