Closed cbmarcum closed 1 year ago
expected result is if there is no explicit entry for the default simpleRepository it is added first followed by the new one:
{
"simpleRepositories": [
"https://codebuilders.jfrog.io/artifactory/generic/skeletal-templates",
"https://codebuilders.jfrog.io/artifactory/generic/openoffice-templates"
]
}
caused in Configuration constructor where all settings are built by default (hard-coded), managed (managed-config.json), and overrides of system properties etc.
problem was that once a array setting like simpleRepositories
was added which caused the managed-config.json file to be written, it overrode the default setting which held the default repository.
fix is to include the defaults in the managed settings and then write them all to the json file. only leave out the overrides.
fixed in 0.13.2
adding a simpleRepository before there was a managed-config.json file using:
created managed-config.json with this content:
then listing templates:
and the default repo templates are missing!