Skip to content

cli corrupts conf.v6 files sometimes #3367

@asgr-sydbank

Description

@asgr-sydbank

Describe the bug

We have multiple Azure-Pipeline tasks running on our build-server all the time.

Recently, we've had instances of the error invalid character '"' after top-level value during nuget-restores.

Deleting the jfrog-cli config-file on the server resolves the issue.

Current behavior

The error is due to invalid json, and we suspect it is caused by multiple tasks manipulating the config... But we don't know. The broken file looked like this before deletion - notice the two instances of "version":"6", which is clearly invalid JSON:

"serverId": "<REDACTED>_dotnet_resolver_1771838204022",
      "isDefault": true
    }
  ],
  "version": "6"
}"version": "6"
}

Reproduction steps

dunno - I suspect it's a concurrency-bug.

Expected behavior

I expect the task to restore our dotnet-projects.

JFrog CLI version

2.89.0

Operating system type and version

Windows Server 2016 Standard

JFrog Artifactory version

EnterpriseX license 7.125.8 rev 82508900

JFrog Xray version

Irrelevant

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions