Hacktoberfest 2026:維護者為十月標記出來的 issue,仍然開放、適合新手。 瀏覽 Hacktoberfest issue

import command requires login even when --microcksURL is provided

未關閉 適合新手
#511 2 則留言 0 個 reaction 已指派 0 人 在 GitHub 檢視

維護者通常 1 天內回覆

@Syedowais312 已經在處理了。

開始於 2026年8月27日。

  • #510 來自 @Syedowais312 —— 未關閉

評估

難度
2/5
預估耗時
1-3 小時
新手友好度
84/100
Issue 類型
缺陷
描述清晰度
描述清楚
活躍度
活躍
技術堆疊
go
領域
cli

研究方向

從 cmd/import.go 開始,將其用戶端設定與 import-dir 使用 newCommandClient(globalClientOpts) 的方式進行比較。使用 --microcksURL 和空的設定路徑在本機伺服器上重現該命令;完成標準是使用提供的 URL,而不需要已儲存的登入資訊,同時需要驗證的伺服器會回傳其驗證錯誤或 API 錯誤。

由索引模型根據 Issue 內容生成。

描述

component/cli kind/bug
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
Image
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 範本
  • 閱讀貢獻指南

從這裡開始

  1. 先讀完整個 Issue,再讀專案的貢獻指南。
  2. 在 Issue 下留言說明你要接手 —— 這能避免兩個人做同樣的事。
  3. Fork 儲存庫,在一個分支上完成修改。
  4. 送出 Pull Request,並在描述裡引用這個 Issue 編號。

microcks/microcks-cli 的其他 Issue

查看 microcks/microcks-cli 的全部 Issue

相似的 Issue

更多 Go Issue

把新 issue 寄到你的電子郵件信箱

精選適合新手參與的 GitHub issue 摘要。