Project

General

Profile

Actions

Bug #2725

closed

Potential name construction errors

Added by Alex Afanasyev over 9 years ago. Updated over 9 years ago.

Status:
Closed
Priority:
Normal
Category:
Base
Target version:
Start date:
04/03/2015
Due date:
% Done:

100%

Estimated time:

Description

During construction of the Name object from URI, the following logic applies:

  • "empty" name components are skipped
  • for each name component in URI, heading and trailing whitespace is stripped

The first issue was working properly due to a bug in name::Component implementation, fixed as part of #2660. I believe that URIs containing multiple / in sequence are invalid and should throw exception (e.g., /hello////world should be invalid). After #2660, behavior changes to throw exception.

I'm not sure if the second logic is correct. In other words, why / hello\t/\tworld \r\n is equivalent to /hello/world ?


Related issues 1 (1 open0 closed)

Related to ndn-cxx - Feature #1840: Make ndn URI resolution RFC3986-compliantNew

Actions
Actions

Also available in: Atom PDF