Actions
Bug #2639
closedInMemoryStorage does not accept data if it is not wireEncoded
Start date:
03/12/2015
Due date:
% Done:
100%
Estimated time:
0.50 h
Description
Create a data packet and set the signature (e.g. manually set the SHA256 digest), put it into InMemoryStorage.
Expect: find data in the InMemoryStorage
Actual: throw Error due to no wireFormat
util::InMemoryStorageFifo ims;
auto data = make_shared<Data>("/1");
ndn::SignatureSha256WithRsa fakeSignature;
fakeSignature.setValue(makeEmptyBlock(tlv::SignatureValue));
data->setSignature(fakeSignature);
ims.insert(*data); // throw error: Full name requested, but Data packet does not have wire format
Updated by Junxiao Shi over 9 years ago
- Description updated (diff)
- Category set to Utils
Please post a code snippet that reproduces this Bug.
Updated by Junxiao Shi about 9 years ago
I think the solution is to add a Doxygen comment on InMemoryStorage::insert
: "Data must have wire format."
Similarly, ContentStore requires the Data to have wire format.
Updated by Junxiao Shi about 9 years ago
20151020 conference call approves note-3 design.
Updated by Junxiao Shi over 7 years ago
- Status changed from New to Code review
- Assignee set to Junxiao Shi
- Target version set to v0.6
- % Done changed from 0 to 100
- Estimated time set to 0.50 h
Updated by Junxiao Shi over 7 years ago
- Status changed from Code review to Closed
Actions