Project

General

Profile

Actions

Bug #2639

closed

InMemoryStorage does not accept data if it is not wireEncoded

Added by Yingdi Yu about 9 years ago. Updated almost 7 years ago.

Status:
Closed
Priority:
Normal
Assignee:
Category:
Utils
Target version:
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
Actions #1

Updated by Junxiao Shi about 9 years ago

  • Description updated (diff)
  • Category set to Utils

Please post a code snippet that reproduces this Bug.

Actions #2

Updated by Yingdi Yu over 8 years ago

  • Description updated (diff)
Actions #3

Updated by Junxiao Shi over 8 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.

Actions #4

Updated by Junxiao Shi over 8 years ago

20151020 conference call approves note-3 design.

Actions #5

Updated by Junxiao Shi almost 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
Actions #6

Updated by Junxiao Shi almost 7 years ago

  • Status changed from Code review to Closed
Actions

Also available in: Atom PDF