[YANGTOOLS-846] Deserialization of mpls-label union (identityref + int) fails Created: 05/Feb/18 Updated: 05/Mar/18 Resolved: 05/Mar/18 |
|
| Status: | Resolved |
| Project: | yangtools |
| Component/s: | codecs |
| Affects Version/s: | 1.2.1, 1.1.2, 2.0.1 |
| Fix Version/s: | 1.1.4, 2.0.2, 1.2.3 |
| Type: | Bug | Priority: | Medium |
| Reporter: | Marek Gradzki | Assignee: | Robert Varga |
| Resolution: | Done | Votes: | 0 |
| Labels: | None | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Attachments: |
|
||||||||
| Issue Links: |
|
||||||||
| Description |
|
typedef mpls-label {
type union {
type mpls-label-special-purpose;
type mpls-label-general-use;
}
}
As defined in:
Data:
{
"static-lsp": [
{
"name": "static-lsp0",
(...)
"outgoing-label": 111
}
]
}
Outcome: 2018-02-05 08:21:56.087 CET [qtp628963688-20] DEBUG o.o.y.b.d.c.i.UnionValueOptionContext - Codec org.opendaylight.yangtools.binding.data.codec.impl.IdentityCodec@69393602 failed to deserialize input (urn:ietf:params:xml:ns:yang:ietf-mpls-static?revision=2017-03-10)111
Full log included
|
| Comments |
| Comment by Robert Varga [ 05/Feb/18 ] |
|
This looks like a problem in yangtools, as the provided data should not deserialize to a QName – there is no such identity, so the input is not valid for an identityref type and the parser should move on to the next field. |
| Comment by Robert Varga [ 05/Mar/18 ] |
|
Oxygen: https://git.opendaylight.org/gerrit/69076 https://git.opendaylight.org/gerrit/68543 Nitrogen: https://git.opendaylight.org/gerrit/69075 https://git.opendaylight.org/gerrit/69079 Carbon: https://git.opendaylight.org/gerrit/69077 https://git.opendaylight.org/gerrit/69078
|