tnc-ba / strongTNC

BYOD TNC Database Management Tool
GNU Affero General Public License v3.0
0 stars 0 forks source link

Investigate! Is : allowed in the uniqueid? (softwareid is filename) #90

Closed d22 closed 10 years ago

d22 commented 10 years ago

unique_id that may be either a GUID, or any reference unique for the tag_creator_regid. The unique_id shall follow the restrictions for URI character use as specified in IETF RFC 3986, section 2, characters.

ISO/IEC CD 19770-2 (N6078 - ISO CD 19770-2-5.pdf) Page 13

Since the uniqueid 'shall follow the restrictions for URI character use'_, the colon is not a disallowed character, but a reserved one: reserved = gen-delims / sub-delims gen-delims = ":" / "/" / "?" / "#" / "[" / "]" / "@" sub-delims = "!" / "$" / "&" / "'" / "(" / ")" / "*" / "+" / "," / ";" / "="

unreserved = ALPHA / DIGIT / "-" / "." / "_" / "~" See: http://www.ietf.org/rfc/rfc3986.txt

The unique_id can be used in the href attribute of the Link tag, within a swid: URI scheme. This means the unique_id should not contain colons.

To address the "software_id is filename" thing. In the standard is the following line:

<tag_creator_regid>_<product_title>.swidtag

But there is no further reference to the <product_title>.