Import Distro Tree URL in Web behaves differently and has separate code from the distro-import CLI. Some of this behavior can be unified so they both behave the same. For instance: * Importing duplicate URL through CLI will lead to distro-import skipping over that URL but doing this in Web UI will result in error (500, should be fixed as part of this bug. * Importing URL with same scheme that is already present in said distro tree will lead to distro-import replacing the old URL with the new one. Doing this in Web UI will result in multiple URLs with the same scheme (that should never happen) * There is non-functional part in the distro-import code that's supposed to be checking if URL is not absolute. Right now it's not working but works correctly in the Web UI. Should be fixed and unified as well.
*** Bug 1198948 has been marked as a duplicate of this bug. ***