[coverage] Conformance findings: SESSION-010

未關閉
#883 0 則留言 0 個 reaction 已指派 0 人 在 GitHub 檢視

還沒有人認領這個 Issue。

評估

難度
3/5
預估耗時
1-2 天
新手友好度
64/100
Issue 類型
缺陷
描述清晰度
描述清楚
活躍度
冷清
技術堆疊
python
領域
api, backend

研究方向

首先定位 user_friendly_error_message() 和 _extract_error_message_from_headers(),然後檢查 coverage fan-out 中針對 SESSION-010 的 expected-failure 測試。當工作階段開啟時的驗證失敗在呈現的 RequestError 中保留伺服器詳細資訊和 HTTP 401 狀態,而不是只回傳一般訊息時,即表示完成。

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

描述

Surfaced by the multi-language coverage fan-out while conformance-testing these SPEC-IDs against databricks/databricks-sql-python.

Each is committed as an expected-failure (xfail) test in the coverage PR — the test asserts the CORRECT behavior and stays red until this driver is fixed.

  • SESSION-010: Thrift session-open auth failure discards the server's detail: an HTTP 401 with "Token has expired" in the body surfaces as a bare RequestError("Error during request to server. "), dropping both the server text and the 401 status, so callers cannot distinguish an expired token from a bad warehouse or a network fault. user_friendly_error_message() appends only header-sourced detail (_extract_error_message_from_headers) and never the HTTP status.

Reference driver PR: https://github.com/databricks/databricks-jdbc/pull/1587
Coverage PR (reproducing xfail tests): https://github.com/databricks/databricks-driver-test/pull/974

主要語言
Python
星號
233
分支
152
平均合併
21 小時 5 分鐘
30 天內合併 PR
10

貢獻指南

開啟貢獻指南

從這裡開始

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

databricks/databricks-sql-python 的其他 Issue

查看 databricks/databricks-sql-python 的全部 Issue

相似的 Issue

更多 Python Issue

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

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