Kentico / xperience-by-kentico-kentico-migration-tool

A customizable tool that migrates older Kentico solutions to the latest version of Xperience by Kentico.
MIT License
4 stars 0 forks source link

Media migration doesn't respect "CMSMediaLibrariesFolder" #200

Open liamgold opened 2 weeks ago

liamgold commented 2 weeks ago

Brief bug description

In previous versions of Kentico you can remap media libraries to a custom location, using the setting CMSMediaLibrariesFolder.

The current implementation for building up the path to the media library will fail if you've changed this setting.

For example, if you have it configured for ExampleSite_Media then it will produce the following:

// Broken path:
C:\Projects\Example\CMS\ExampleSite\media\Media

// Correct path:
C:\Projects\Example\CMS\ExampleSite_Media\ExampleSite\Media

Repro steps

  1. Configure a custom folder for the media library in your KX13 instance
  2. Run migration toolkit, and get error saying it cannot find the right source path

Expected behavior

Respect the KX13 sites' CMSMediaLibrariesFolder setting when resolving paths for media libraries.

tkrch commented 2 weeks ago

@liamgold thank You for report, I will look into it.