Open StephenWithPH opened 8 months ago
Hi @StephenWithPH , Thank you for reporting this issue. I created https://github.com/jfrog/jfrog-cli-core/pull/1177 to fix the issue with refreshing the tokens.
As for the error going to stdout, I verified that errors thrown from the usage report are always reported to the debug log that defaults to stderr. Can you make sure that you don't have logs printed to stdout?
Thanks
As for the error going to stdout, I verified that errors thrown from the usage report are always reported to the debug log that defaults to stderr. Can you make sure that you don't have logs printed to stdout?
I likely failed to unset some redirection while I was debugging / repro'ing to open the issue. I apologize.
Describe the bug
Having authenticated the cli using
jf login
, then invokedjf atc
, future invocations ofjf atc
orjf rt ping
fail with:Current behavior
Initial State
https://<JFrog Platform URL>/ui/admin/configuration/security/access_tokens
Authenticate jfrog cli via Web UI
jf login
, providing JFrog Platform URL when prompted, accepting default values, and successfully completing code prompt entry.https://<JFrog Platform URL>/ui/admin/configuration/security/access_tokens
:Create access token for use in scripting with jfrog cli
A new token is created, but the
404 not found
json also going to stdout renders this operation useless for scripting.jfrog cli has config:
refreshToken
is unchanged from the value after initialjf login
artifactoryRefreshToken
Two tokens visible at
https://<JFrog Platform URL>/ui/admin/configuration/security/access_tokens
:jf login
jf atc
aboveAttempt to create another access token for use in scripting with jfrog cli
jfrog cli has config:
refreshToken
is unchanged from the value after initialjf login
artifactoryRefreshToken
is unchanged from its value after appearing subsequent to the firstjf atc
The two tokens visible at
https://<JFrog Platform URL>/ui/admin/configuration/security/access_tokens
are unchanged from their values after the firstjf atc
:Other cli commands are now broken:
Reproduction steps
See above.
Expected behavior
Having authenticated the cli using
jf login
, can repeatedly invokejf atc
as needed, receiving no errors and a valid token that can be used, e.g:JFrog CLI version
jf version 2.52.10
Operating system type and version
darwin/arm64 14.4 (23E214)
JFrog Artifactory version
SaaS
JFrog Xray version
SaaS