Description
Umbraco 10.8.6
Bug summary
I have a umbraco 10 installation.
In the [umbracoMediaVersion] table in my database, some urls are fully qualified to my blob storage, and some are relative.
But, we need the images to go through the iamgeprocessor
So I tried using the cdn url provider mode that I could read about in the docs.
THis however results in url's of images of publishedcontents end up looking this this:
[cdnurl.com]/[blobstorage.az]/path/to/image
it concatenates both my cdn url and blob storage, which is of course not a very usefull url.
Specifics
Running locally, I have this step for my cdn settings:
umbBuilder.AddCdnMediaUrlProvider(options =>
{
options.Url = new Uri("https://localhost:44314/");
options.RemoveMediaFromPath = false;
})
some other appsettings that might be relevant might look like this:
"RequestHandler": {
"addTrailingSlash": false
},
"WebRouting": {
"TrySkipIisCustomErrors": true,
"InternalRedirectPreservesTemplate": false,
"DisableAlternativeTemplates": false,
"ValidateAlternativeTemplates": false,
"DisableFindContentByIdPath": false,
//"UmbracoApplicationUrl": "",
"UrlProviderMode": "Absolute"
},
Steps to reproduce
Install umbraco 10.8.6
- setup images with blob storage, such that the database contains full urls
- add AddCdnMediaUrlProvider in startup .cs
- load images, and notice that full y qualified urls are simply concatenated with the given cdn url
Expected result / actual result
I would expect the storage provider to be able to determine that it should remove the domain already in the database, and render the image with the cdn domain instead