OASIS Mailing List ArchivesView the OASIS mailing list archive below
or browse/search using MarkMail.

 


Help: OASIS Mailing Lists Help | MarkMail Help

sarif message

[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]


Subject: Re: [sarif] Clarification about uri encoding


Larry:

Thanks! I read this as allowing colons in path segments except in the first segment of a relative path.

In any case I now have the answer I need.

-Paul

On 4/8/2019 12:54 PM, Larry Golding (Myriad Consulting Inc) wrote:

Ah, there it is:

Â

ÂÂ segmentÂÂÂÂÂÂ = *pchar

ÂÂ segment-nzÂÂÂ = 1*pchar

ÂÂ segment-nz-nc = 1*( unreserved / pct-encoded / sub-delims / "@" )

ÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂ ; non-zero-length segment without any colon ":"

Â

ÂÂ pcharÂÂÂÂÂÂÂÂ = unreserved / pct-encoded / sub-delims / ":" / "@"

Â

Â

From: sarif@lists.oasis-open.org <sarif@lists.oasis-open.org> On Behalf Of Larry Golding (Myriad Consulting Inc)
Sent: Monday, April 8, 2019 9:52 AM
To: Paul Anderson <paul@grammatech.com>; sarif@lists.oasis-open.org
Subject: RE: [sarif] Clarification about uri encoding

Â

Yes, it is allowed, but the spec says

Â

Two URI references SHALL be considered equivalent if their normalized forms are the same, as described in [RFC3986].

Â

â which means that before you compare youâd have to un-escape it back to a colon â or is it the other way around? Iâd have to go back to the RFC to recall whether you can have a â:â in a path segment.

Â

Larry

Â

From: sarif@lists.oasis-open.org <sarif@lists.oasis-open.org> On Behalf Of Paul Anderson
Sent: Monday, April 8, 2019 9:29 AM
To: sarif@lists.oasis-open.org
Subject: [sarif] Clarification about uri encoding

Â

All:

Is it valid SARIF to have a uri encoded like this: "file:///c%3A/tmp/foo.c", and for this to be considered the same as "file:///c:/tmp/foo.c"?

My reading is yes, the encoding of the colon in that position is optional, but I just want to make sure....

Thanks,

-Paul

-- 
Paul Anderson, VP of Engineering, GrammaTech, Inc.
531 Esty St., Ithaca, NY 14850
Tel: +1 607 273-7340 x118; http://www.grammatech.com 
-- 
Paul Anderson, VP of Engineering, GrammaTech, Inc.
531 Esty St., Ithaca, NY 14850
Tel: +1 607 273-7340 x118; http://www.grammatech.com 


[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]