import command requires login even when --microcksURL is provided
維護者通常 1 天內回覆
評估
研究方向
從 cmd/import.go 開始,將其用戶端設定與 import-dir 使用 newCommandClient(globalClientOpts) 的方式進行比較。使用 --microcksURL 和空的設定路徑在本機伺服器上重現該命令;完成標準是使用提供的 URL,而不需要已儲存的登入資訊,同時需要驗證的伺服器會回傳其驗證錯誤或 API 錯誤。
由索引模型根據 Issue 內容生成。
描述
Describe the bug
microcks import does not seem to handle --microcksURL the same way as import-dir.
I started a local Microcks instance using microcks start, which runs the latest-native image without Keycloak enabled. In this setup, importing through --microcksURL http://localhost:8585 should work without a saved login/config.
import-dir works correctly with an empty config path and imports the artifact successfully. But import with the same server URL and same empty config path fails with:
please login to perform this operation
This is confusing because the command already has the target server from --microcksURL.
Expected behavior
microcks import --microcksURL... should try to use the provided server directly, like --import-dir does. If the server requires authentication, then it
should fail with an auth/API error from the server.
The issue seems to be that cmd/import.go has its own client setup logic, while import-dir uses the shared newCommandClient(globalClientOpts) helper.
Repro
Microcks version or git rev
microcks-cli master branch
Install method (docker-compose, helm chart, operator, docker-desktop extension,...)
No response
Additional information
No response
- 主要語言
- Go
- 星號
- 58
- 分支
- 72
- 平均合併
- 1 天 7 小時
- 30 天內合併 PR
- 22
環境準備
- 沒有 Dockerfile 或 Docker Compose 檔案
- 沒有 Pull Request 範本
- 閱讀貢獻指南
從這裡開始
- 先讀完整個 Issue,再讀專案的貢獻指南。
- 在 Issue 下留言說明你要接手 —— 這能避免兩個人做同樣的事。
- Fork 儲存庫,在一個分支上完成修改。
- 送出 Pull Request,並在描述裡引用這個 Issue 編號。
microcks/microcks-cli 的其他 Issue
-
Wrong link to test results可能重新可做 @SajanBisht 於 8 天前認領,目前沒有進行中的 PR。 未關閉component/cli keep-open kind/bug
難度 2/5 1-3 小時 新手友好度 62/100
microcks/microcks-cli#589 · 3 則留言 ·
維護者通常 1 天內回覆
-
Default configuration path falls back to the current directory when the home directory cannot be determined可能已有人在做 @Sarthak-Shreshtha01 於 12 天前認領。 未關閉component/cli kind/bug
難度 2/5 1-3 小時 新手友好度 76/100
microcks/microcks-cli#583 · 5 則留言 ·
維護者通常 1 天內回覆
-
microcks test exits with code 1 (contract failure) instead of code 11 (connection) when polling loop times out可能已有人在做 @ish-g09 於 10 天前認領。 未關閉component/cli kind/bug
難度 1/5 1 小時以內 新手友好度 88/100
microcks/microcks-cli#573 · 5 則留言 ·
維護者通常 1 天內回覆
-
bug: YAML parse error in config is silently swallowed, login overwrites all other contexts可能已有人在做 @Sarthak-Shreshtha01 於 17 天前認領。 未關閉component/cli kind/bug
難度 2/5 1-3 小時 新手友好度 76/100
microcks/microcks-cli#572 · 6 則留言 ·
維護者通常 1 天內回覆
-
import-dir uploads secondary artifacts before their primary API definition可能已有人在做 @doraem-on 於 24 天前認領。 未關閉component/cli kind/bug
難度 2/5 1-3 小時 新手友好度 88/100
microcks/microcks-cli#561 · 4 則留言 ·
維護者通常 1 天內回覆
查看 microcks/microcks-cli 的全部 Issue
相似的 Issue
-
stage-fail
難度 1/5 1 小時以內 新手友好度 72/100
siyuan-note/bazaar#2405 ·
維護者通常 1 天內回覆
-
bug priority: high workstream:cache
難度 2/5 1-3 小時 新手友好度 76/100
rossoctl/context-guru#707 ·
維護者通常 1 天內回覆
-
難度 2/5 1-3 小時 新手友好度 73/100
prime-radiant-inc/evener#5028 ·
維護者通常 1 天內回覆
-
難度 1/5 1 小時以內 新手友好度 85/100
維護者通常 1 天內回覆
-
難度 2/5 1-3 小時 新手友好度 70/100