unset optional or repeated messages with required child fields show up on decode

Bug #1181026 reported by toby schneider
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Dynamic Compact Control Language
Fix Released
High
toby schneider
Goby
Won't Fix
High
toby schneider

Bug Description

message Info {
        required int32 state = 1 [(dccl.field) = { min: 0 max: 10 }];
}

message Data {
        option (dccl.msg).id = 10;
        option (dccl.msg).max_bytes = 32;
        optional Info info = 6;
}

Even if "info" is not set, it shows up on decoded messages (due to the required field "state" inside "Info").

I believe that fixing this bug will require changing the wire protocol of DCCLDefaultMessageCodec, which means we need to undertake it with care to preserve backwards compatibility with release 2.0.

Related branches

toby schneider (tes)
summary: - optional or repeated messages with required child fields show up on
- decode
+ unset optional or repeated messages with required child fields show up
+ on decode
description: updated
description: updated
Revision history for this message
toby schneider (tes) wrote :

This will be resolved in DCCL v3, which Goby 2.1 will depend on.

Changed in dccl:
importance: Undecided → High
assignee: nobody → toby schneider (tes)
milestone: none → 3.0.0
Changed in goby:
status: New → Won't Fix
Changed in dccl:
status: New → In Progress
toby schneider (tes)
Changed in dccl:
status: In Progress → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.