Bug #1944
closed
Allow trailing slash for UDP and TCP FaceUris
Added by Vince Lehman about 10 years ago.
Updated about 10 years ago.
Description
Currently, NLSR will not install an entry for a router with a face-uri that has a trailing slash.
e.g. face-uri udp://click.caida.org/
This fix should allow a user to configure the face-uri with or without the trailing slash.
- Project changed from NLSR to NFD
- Category set to Management
- Status changed from New to In Progress
- Assignee changed from Vince Lehman to Alex Afanasyev
- Target version set to v0.3
- Estimated time set to 1.00 h
To reproduce the problem:
nfdc create udp://1.1.1.1/
Expected: face created
Actual:
[cawka@cawka-mac ~]$ nfdc create udp4://1.1.1.1/
ERROR: Face creation failed: Invalid URI (code: 408)
The problem boils down to the check in daemon/face/[udp|tcp]-factory.cpp
if (!uri.getPath().empty())
I will update factories to allow path that contain just /
.
- Subject changed from Allow trailing slash in face-uri in nlsr.conf to Allow trailing slash for UDP and TCP FaceUris
- Status changed from In Progress to Code review
- % Done changed from 0 to 100
- Status changed from Code review to Closed
Also available in: Atom
PDF