[Bps-public-commit] assets branch, links, created. 1.05-1-g4693d64

Dustin Graves dustin at bestpractical.com
Mon Aug 17 12:48:49 EDT 2015


The branch, links has been created
        at  4693d64a3f86a604d071a51144a972bd36d746f1 (commit)

- Log -----------------------------------------------------------------
commit 4693d64a3f86a604d071a51144a972bd36d746f1
Author: Dustin Graves <dustin at bestpractical.com>
Date:   Mon Aug 17 16:47:32 2015 +0000

    Change asset link to save proper id and not verbatim string e.g. 1 not 001
    
    Fixes: I#30610

diff --git a/lib/RT/URI/asset.pm b/lib/RT/URI/asset.pm
index aeab115..64263ac 100644
--- a/lib/RT/URI/asset.pm
+++ b/lib/RT/URI/asset.pm
@@ -138,7 +138,8 @@ sub ParseURI {
 
     # canonicalize "42" and "asset:42" -> asset://example.com/42
     if ($uri =~ /^(?:\Q$scheme\E:)?(\d+)$/i) {
-        $self->{'uri'} = $self->LocalURIPrefix . $1;
+        my $assetId = 0+$1;
+        $self->{'uri'} = $self->LocalURIPrefix . $assetId;
     }
     else {
         $self->{'uri'} = $uri;

-----------------------------------------------------------------------


More information about the Bps-public-commit mailing list