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

chenkaiyin updated FLINK-21266:
-------------------------------
    Description: 
The annotation in the document can request the interface directly, but it will 
return an error directly。

Post /jobs/:job/savepoints
 Post /jobs/:job/stop

An error is reported when serializing "{}" in code:

MAPPER.readValue("{}", untypedResponseMessageHeaders.getRequestClass());

(AbstractHandle.java: 150)

The reason is that the JSONPorperty defaultValue does not apply to Boolean

 

!image-2021-02-04-11-11-03-966.png|width=669,height=379!

 

  was:
The annotation in the document can request the interface directly, but it will 
return an error directly。

Post /jobs/:job/savepoints
 Post /jobs/:job/stop

An error is reported when serializing "{}" in code:

MAPPER.readValue("{}", untypedResponseMessageHeaders.getRequestClass());

(AbstractHandle.java: 150)

The reason should be that the JsonPorperty defaultValue is not in effect

 

!image-2021-02-04-11-11-03-966.png|width=669,height=379!

 


> The POST request caused a JSON serialization error
> --------------------------------------------------
>
>                 Key: FLINK-21266
>                 URL: https://issues.apache.org/jira/browse/FLINK-21266
>             Project: Flink
>          Issue Type: Bug
>          Components: Runtime / REST
>    Affects Versions: 1.11.3
>            Reporter: chenkaiyin
>            Priority: Major
>         Attachments: image-2021-02-04-11-11-03-966.png
>
>
> The annotation in the document can request the interface directly, but it 
> will return an error directly。
> Post /jobs/:job/savepoints
>  Post /jobs/:job/stop
> An error is reported when serializing "{}" in code:
> MAPPER.readValue("{}", untypedResponseMessageHeaders.getRequestClass());
> (AbstractHandle.java: 150)
> The reason is that the JSONPorperty defaultValue does not apply to Boolean
>  
> !image-2021-02-04-11-11-03-966.png|width=669,height=379!
>  



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

Reply via email to