mesos-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Tomasz Janiszewski (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (MESOS-5995) Protobuf JSON deserialisation does not accept numbers formated as strings
Date Fri, 05 Aug 2016 14:34:20 GMT

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

Tomasz Janiszewski commented on MESOS-5995:
-------------------------------------------

Review: https://reviews.apache.org/r/50851/

> Protobuf JSON deserialisation does not accept numbers formated as strings
> -------------------------------------------------------------------------
>
>                 Key: MESOS-5995
>                 URL: https://issues.apache.org/jira/browse/MESOS-5995
>             Project: Mesos
>          Issue Type: Bug
>          Components: HTTP API
>    Affects Versions: 1.0.0
>            Reporter: Tomasz Janiszewski
>            Assignee: Tomasz Janiszewski
>            Priority: Minor
>
> Proto2 does not specify JSON mappings but [Proto3|https://developers.google.com/protocol-buffers/docs/proto3#json]
does and it recommend to map 64bit numbers as a string. Unfortunately Mesos does not accepts
strings in places of uint64 and return 400 Bad 
> {quote}
> Request error Failed to convert JSON into Call protobuf: Not expecting a JSON string
for field 'value'.
> {quote}
> Is this by purpose or is this a bug?



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Mime
View raw message