Bug #100109
Java prefix registration should not use interest nonces
| Status: | Resolved | Start: | 01/30/2010 | |
|---|---|---|---|---|
| Priority: | Med (P3) | Due date: | ||
| Assigned to: | Tim Diebert | % Done: | 100% |
|
| Category: | lib-java | |||
| Target version: | - |
Description
I noticed in some ccnd logs that the prefix registration interests from java arrive with a nonce already attached. The nonce is normally added by ccnd, so it is unnecessary to generate one in the java lib.
Checking the code in CCNDaemonHandle that issues the get, since the interest has a nonce any attempt at re-expressing the interest will be pointless because the duplicate nonce will cause it to be discarded immediately.
In the current code base, the libraries should not put nonces in the interest packets except possibly for testing, so perhaps the method for adding the nonce should removed, renamed, or at least documented to protect the unwary.
Associated revisions
Revision 1b0bfca9bb40d763497881f180d81c682f53d77e
Use random component for ping to get the CCNDID. Remove ability to set the "nonce" field and most uses of it for the java library. refs #100109
History
Updated by Michael Plass about 1 month ago
- Category set to lib-java
- Assigned to set to Tim Diebert
Updated by Tim Diebert about 1 month ago
- Status changed from Assigned to Resolved
- % Done changed from 0 to 100
This has been fixed and will be available in a future release.