Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

jfrog config does not replace jfrog rt config #1062

Closed
rmm5t opened this issue Apr 21, 2021 · 2 comments
Closed

jfrog config does not replace jfrog rt config #1062

rmm5t opened this issue Apr 21, 2021 · 2 comments
Labels
bug Something isn't working

Comments

@rmm5t
Copy link

rmm5t commented Apr 21, 2021

Describe the bug
jfrog rt config was deprecated in favor of jfrog config add; however, jfrog config add does not replace jfrog rt config competely.

To Reproduce
Using the same credentials, the two configuration options yield different results:

$ jfrog rt config --url="${ARTIFACTORY_URL}" --user="${ARTIFACTORY_USER}" --password="${ARTIFACTORY_PASSWORD}" Default-Server
[Warn] The "jfrog rt config" command is deprecated. Please use "jfrog config" command instead. You can use it as follows:
	The command includes the following sub-commands - "jfrog config add", "jfrog config edit", "jfrog config show", "jfrog config remove", "jfrog config import" and "jfrog config export".
	Important: When switching to the new command, please replace "--url" with "--artifactory-url".
	For example:
	Old syntax: "jfrog rt config <server-id> --url=<artifactoryUrl>"
	New syntax: "jfrog config add <server-id> --artifactory-url=<artifactory-url>"
$ jfrog config add --artifactory-url="${ARTIFACTORY_URL}" --user="${ARTIFACTORY_USER}" --password="${ARTIFACTORY_PASSWORD}" Default-Server
[Error] The following error was received while trying to encrypt your password: Artifactory response: 401 Unauthorized 

Expected behavior
jfrog config add should have the same outcome as jfrog rt config given the same inputs.

Versions

  • JFrog CLI version: jfrog version 1.46.4
  • JFrog CLI operating system: all
  • Artifactory Version: Enterprise license 7.10.2 rev

Additional context
The user in this scenario appears to be restricted from traditional login, but was setup for use in our CI environments for the purpose of publishing artifacts to artifactory. The user was capable of publishing artifacts using the old artifactory bitbucket pipes and can utilize jfrog rt config but cannot utilize jfrog config.

@rmm5t rmm5t added the bug Something isn't working label Apr 21, 2021
@rmm5t rmm5t changed the title jfrog config does not replace jfrog rt confg jfrog config does not replace jfrog rt config Apr 21, 2021
@yahavi
Copy link
Member

yahavi commented Apr 21, 2021

@rmm5t
Thanks for reporting this issue.

We couldn't reproduce this issue.
Can you please run the command with JFROG_CLI_LOG_LEVEL=DEBUG environment variable and share the results?

@rmm5t
Copy link
Author

rmm5t commented Apr 22, 2021

We now have it working. Our artifactory team had been mucking around with the accounts, and I can no longer reproduce the issue myself either. ¯\_(ツ)_/¯

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants