lib/RT/URI.pm question

What exactly does the $scheme do? Create unique ticket IDs?
I asked because I see it setting fsck.com-rt.

105         my $scheme;
106         # Special case: integers passed in as URIs must be ticket ids
107         if ($uri =~ /^(\d+)$/) {
108                 $scheme = "fsck.com-rt";
109         } elsif ($uri =~ /^((?:\w|\.|-)+?):/) {
110          $scheme = $1;

Jeroen Ruigrok van der Werven <asmodai(at)wxs.nl> / asmodai / a capoeirista
PGP fingerprint: 2D92 980E 45FE 2C28 9DB7 9D88 97E6 839B 2EAC 625B
http://www.tendra.org/ | http://www.in-nomine.org/~asmodai/diary/
Only the wisest and the stupidest of men never change…

That’s a vendor URI scheme. nothing else in the world should create URIs
that start with a fsck.com-rt: prefix. Somewhere, there’s an RFC
recommending this as the right way to do it.

-jOn Wed, Apr 16, 2003 at 05:02:29PM +0200, Jeroen Ruigrok/asmodai wrote:

What exactly does the $scheme do? Create unique ticket IDs?
I asked because I see it setting fsck.com-rt.

105         my $scheme;
106         # Special case: integers passed in as URIs must be ticket ids
107         if ($uri =~ /^(\d+)$/) {
108                 $scheme = "fsck.com-rt";
109         } elsif ($uri =~ /^((?:\w|\.|-)+?):/) {
110          $scheme = $1;


Jeroen Ruigrok van der Werven <asmodai(at)wxs.nl> / asmodai / a capoeirista
PGP fingerprint: 2D92 980E 45FE 2C28 9DB7 9D88 97E6 839B 2EAC 625B
http://www.tendra.org/ | http://www.in-nomine.org/~asmodai/diary/
Only the wisest and the stupidest of men never change…


rt-devel mailing list
rt-devel@lists.fsck.com
http://lists.fsck.com/mailman/listinfo/rt-devel

Request Tracker... So much more than a help desk — Best Practical Solutions – Trouble Ticketing. Free.

That’s a vendor URI scheme. nothing else in the world should create URIs
that start with a fsck.com-rt: prefix. Somewhere, there’s an RFC
recommending this as the right way to do it.

Ahh, ok. It should be the vendor’s. That’s clear then. I was
wondering if this shouldn’t have been the local project/site.

Jeroen Ruigrok van der Werven <asmodai(at)wxs.nl> / asmodai / a capoeirista
PGP fingerprint: 2D92 980E 45FE 2C28 9DB7 9D88 97E6 839B 2EAC 625B
http://www.tendra.org/ | http://www.in-nomine.org/~asmodai/diary/
Only the wisest and the stupidest of men never change…