jfrog / jfrog-cli

JFrog CLI is a client that provides a simple interface that automates access to the JFrog products.
https://www.jfrog.com/confluence/display/CLI/JFrog+CLI
Apache License 2.0
525 stars 223 forks source link

jf rt rc seems not aligned with suggested key-value pair data types in JSON file for configuring repos #2608

Open haniehm opened 1 month ago

haniehm commented 1 month ago

Describe the bug

jf rt rc seems not aligned with suggested key-value pair data types for config JSON file for repos

Current behavior

jf version 2.9.0 jf rt rc cran-remote-config.json (name of the file that is described in reproduction steps section) [Error] template syntax error: the value for the key: "synchronizeProperties" is not a string type.

Reproduction steps

The below jason config file was used for creating a remote repo{ "key": "cran-remote", "rclass": "remote", "packageType": "r", "description": "Remote repository for CRAN packages with Xray indexing enabled", "url": "https://cran.r-project.org/", "repoLayoutRef": "simple-default", "offline": false, "hardFail": false, "storeArtifactsLocally": true, "socketTimeoutMillis": 15000, "localAddress": "", "retrievalCachePeriodSecs": 7200, "missedRetrievalCachePeriodSecs": 1800, "unusedArtifactsCleanupPeriodHours": 168, "assumedOfflinePeriodSecs": 300, "shareConfiguration": false, "synchronizeProperties": false, "blockMismatchingMimeTypes": true, "propertySets": [], "allowAnyHostAuth": false, "enableCookieManagement": false, "clientTlsCertificate": "", "xrayIndex": true }

The json file structure seems aligned with suggested structure (https://jfrog.com/help/r/jfrog-rest-apis/repository-configuration-json).

Expected behavior

repo to be created on Jfrog artifactory repos

JFrog CLI version

2.9.0

Operating system type and version

amazon linux 2023

JFrog Artifactory version

7.71.20

JFrog Xray version

No response

haniehm commented 1 month ago

So it seems the website documentation is not reliable for CLI use and and all data-types should be changed to "string" for repo config JSON files.