You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@mesos.apache.org by "Till Toenshoff (JIRA)" <ji...@apache.org> on 2014/04/07 04:36:14 UTC
[jira] [Created] (MESOS-1194) protobuf-JSON rendering doesnt
validate
Till Toenshoff created MESOS-1194:
-------------------------------------
Summary: protobuf-JSON rendering doesnt validate
Key: MESOS-1194
URL: https://issues.apache.org/jira/browse/MESOS-1194
Project: Mesos
Issue Type: Bug
Components: stout
Affects Versions: 0.19.0
Reporter: Till Toenshoff
Priority: Minor
When using JSON::Protobuf(Message&), the supplied protobuf is not checked for being properly initialized, hence e.g. required fields could be missing.
It would be desirable to have a feedback mechanism in place for this constructor - maybe this would do:
{noformat}
if (!message.IsInitialized()) {
std::cerr << "Protobuf not initialized: " << message.InitializationErrorString() << std::endl;
abort();
}
{noformat}
--
This message was sent by Atlassian JIRA
(v6.2#6252)