[RTFACT-20889] Default deployment repository is not changed after removing that repository from virtual repo Created: 17/Dec/19  Updated: 06/Jan/20

Status: Open
Project: Artifactory Binary Repository
Component/s: REST API
Affects Version/s: None
Fix Version/s: None

Type: Bug Priority: Normal
Reporter: Grzegorz Skołyszewski Assignee: Unassigned
Resolution: Unresolved Votes: 0
Labels: None


 Description   

Setup:

Create virtual repository "virtual-rep1" containing local repository "local-rep1". Configure "local-rep1" to be default deployment repository for "virtual-rep1".

Scenario:

Remove "local-rep1" from "virtual-rep1"

Expected:

default deployment repository for "virtual-rep1" is unset

Observed:

UI - as expected

REST API: default deployment repository for "virtual-rep1" is "local-rep1" even though it's not a part of "virtual-rep1" anymore



 Comments   
Comment by Grzegorz Skołyszewski [ 17/Dec/19 ]

Repo configuration pre change:

{
  "key" : "test-default-deployment",
  "packageType" : "debian",
  "description" : "",
  "notes" : "",
  "includesPattern" : "**/*",
  "excludesPattern" : "",
  "repoLayoutRef" : "simple-default",
  "enableComposerSupport" : false,
  "enableNuGetSupport" : false,
  "enableGemsSupport" : false,
  "enableNpmSupport" : false,
  "enableBowerSupport" : false,
  "enableCocoaPodsSupport" : false,
  "enableConanSupport" : false,
  "enableDebianSupport" : true,
  "debianTrivialLayout" : false,
  "enablePypiSupport" : false,
  "enablePuppetSupport" : false,
  "enableDockerSupport" : false,
  "dockerApiVersion" : "V2",
  "forceNugetAuthentication" : false,
  "enableVagrantSupport" : false,
  "enableGitLfsSupport" : false,
  "enableDistRepoSupport" : false,
  "repositories" : [ "gs-test-akabuntu", "akabuntu-development-local", "akabuntu-test-dfw" ],
  "artifactoryRequestsCanRetrieveRemoteArtifacts" : false,
  "resolveDockerTagsByTimestamp" : false,
  "keyPair" : "",
  "pomRepositoryReferencesCleanupPolicy" : "discard_active_reference",
  "defaultDeploymentRepo" : "akabuntu-development-local",
  "externalDependenciesEnabled" : false,
  "virtualRetrievalCachePeriodSecs" : 7200,
  "forceMavenAuthentication" : false,
  "debianDefaultArchitectures" : "amd64,i386",
  "optionalIndexCompressionFormats" : [ "bz2" ],
  "enabledChefSupport" : false,
  "rclass" : "virtual"
}

JSON Document sent to Update repository configuration endpoint:

{
    "rclass" : "virtual",
    "packageType": "debian",
    "repositories": ["gs-test-akabuntu", "akabuntu-test-dfw"]
}

Post change configuration

{
  "key" : "test-default-deployment",
  "packageType" : "debian",
  "description" : "",
  "notes" : "",
  "includesPattern" : "**/*",
  "excludesPattern" : "",
  "repoLayoutRef" : "simple-default",
  "enableComposerSupport" : false,
  "enableNuGetSupport" : false,
  "enableGemsSupport" : false,
  "enableNpmSupport" : false,
  "enableBowerSupport" : false,
  "enableCocoaPodsSupport" : false,
  "enableConanSupport" : false,
  "enableDebianSupport" : true,
  "debianTrivialLayout" : false,
  "enablePypiSupport" : false,
  "enablePuppetSupport" : false,
  "enableDockerSupport" : false,
  "dockerApiVersion" : "V2",
  "forceNugetAuthentication" : false,
  "enableVagrantSupport" : false,
  "enableGitLfsSupport" : false,
  "enableDistRepoSupport" : false,
  "repositories" : [ "gs-test-akabuntu", "akabuntu-test-dfw" ],
  "artifactoryRequestsCanRetrieveRemoteArtifacts" : false,
  "resolveDockerTagsByTimestamp" : false,
  "keyPair" : "",
  "pomRepositoryReferencesCleanupPolicy" : "discard_active_reference",
  "defaultDeploymentRepo" : "akabuntu-development-local",
  "externalDependenciesEnabled" : false,
  "virtualRetrievalCachePeriodSecs" : 7200,
  "forceMavenAuthentication" : false,
  "debianDefaultArchitectures" : "amd64,i386",
  "optionalIndexCompressionFormats" : [ "bz2" ],
  "enabledChefSupport" : false,
  "rclass" : "virtual"
}
Generated at Sat Apr 04 12:49:00 UTC 2020 using JIRA 7.6.16#76018-sha1:9ed376192612a49536ac834c64177a0fed6290f5.