We have a Virtual repo (let's call it generic-repo) which is hooked up to a local repo (let's call it local-generic-repo) and a number of smart remotes.
Calling the following command using the virtual repo:
.\jfrog.exe rt move "generic-repo/some-folder/subfolder-a/" "generic-repo/some-folder/subfolder-b/" --dry-run=true --flat=true
results in output like:
[Info] [Thread 1] [Dry run] [Dry run] Moving artifact: generic-repo/some-folder/subfolder-a/some-file.exe to: generic-repo/some-folder/subfolder-b/some-file.exe
[Error] [Thread 1] [Dry run] Artifactory response: 409 Conflict
{
"messages": [
{
"level": "ERROR",
"message": "Failed to move from src=generic-repo/some-folder/subfolder-a/some-file.exe to target=generic-repo/some-folder/subfolder-b/some-file.exe: class org.artif
actory.repo.virtual.VirtualRepo cannot be cast to class org.artifactory.repo.LocalRepo (org.artifactory.repo.virtual.VirtualRepo and org.artifactory.repo.LocalRepo are in unnamed module of loader org.apache.catalina.loader.Par
allelWebappClassLoader @2da446d7)"
}
]
}
Using the local repository (local-generic-repo) instead of the virtual repo in the above command works fine.
Expected behavior
No exception should be raised.
Versions
JFrog CLI version: 1.48.1
JFrog CLI operating system: Windows Server 2008 R2
Artifactory Version: Enterprise Plus 7.19.8 rev 71908900
We have a Virtual repo (let's call it
generic-repo
) which is hooked up to a local repo (let's call itlocal-generic-repo
) and a number of smart remotes.Calling the following command using the virtual repo:
.\jfrog.exe rt move "generic-repo/some-folder/subfolder-a/" "generic-repo/some-folder/subfolder-b/" --dry-run=true --flat=true
results in output like:
Using the local repository (
local-generic-repo
) instead of the virtual repo in the above command works fine.Expected behavior No exception should be raised.
Versions