You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
Encountering this error when modifying an existing virtual repository. Virtual repository must include only repositories from the same project it was created with. JFrog says that this occurs when the repositories are not shared.
I am not aware of a way to share repositories using the provider.
Requirements for and issue
Artifactory version 7.90.13
Terraform 1.6.2
Artifactory provider 11.9.2
Expected behavior
Not encountering the error when modifying an existing virtual repository.
Additional context
In troubleshooting I have found that a destroy and create of the virtual repository resolves the error.
Here is an example of fixing the problem.
The repositories variable contains the list of repositories that make up the virtual repository.
When the value of repositories is modified it triggers a replacement of the virtual repository.
Here is the scenario I am running into.
Two teams and two projects in the same instance of Artifactory.
Each team owns the iac for their individual teams.
Team A wants to share a local repository with Team B.
Team A sets up a user for Team B to use that has access to the local repository.
Team B sets up a remote repository to the local repository owned by Team A.
Team B adds the remote repository to the virtual repository for Team B.
Team B encounters the error.
We are using a remote repository and not sharing using project.
Project share repository still falls into this scenario?
In other cases of using a remote repository we don't fall into the problem i.e. two different instances of Artifactory.
I am not sure what the API validation is checking.
It seems to recognize that the remote repository is in the same instance and enforcing project sharing.
Describe the bug
Encountering this error when modifying an existing virtual repository.
Virtual repository must include only repositories from the same project it was created with
.JFrog says that this occurs when the repositories are not shared.
I am not aware of a way to share repositories using the provider.
Requirements for and issue
Expected behavior
Not encountering the error when modifying an existing virtual repository.
Additional context
In troubleshooting I have found that a destroy and create of the virtual repository resolves the error.
Here is an example of fixing the problem.
The
repositories
variable contains the list of repositories that make up the virtual repository.When the value of
repositories
is modified it triggers a replacement of the virtual repository.The text was updated successfully, but these errors were encountered: