Actions
Bug #2758
closedencodeControlParameters does not properly encode parameters for some inputs
Status:
Closed
Priority:
High
Assignee:
-
Start date:
Due date:
% Done:
0%
Estimated time:
Description
Command:
- rib/register
Parameters:
- Name:
ndn:/
- FaceId: 100
Expected:
- registered route for
ndn:/
towards face id 100
Actual:
- Malformed command error is returned
Encoding/decoding of ControlParameters
must not rely on the fact that the supplied name is empty to determine whether to encode name or not.
Updated by Anonymous over 9 years ago
So we should allow a null name_ (and strategy_).
https://github.com/named-data/jndn/blob/5ffe9b96bf116868ee591313636bb7de7d978a86/src/net/named_data/jndn/ControlParameters.java#L222
Updated by Anonymous over 9 years ago
- Status changed from New to Closed
Changed ControlParameters to allow a null name. In encodeControlParameters, only omit the name if null.
Actions