[coverage] Conformance findings: SESSION-010
還沒有人認領這個 Issue。
評估
研究方向
首先定位 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
貢獻指南
從這裡開始
- 先讀完整個 Issue,再讀專案的貢獻指南。
- 在 Issue 下留言說明你要接手 —— 這能避免兩個人做同樣的事。
- Fork 儲存庫,在一個分支上完成修改。
- 送出 Pull Request,並在描述裡引用這個 Issue 編號。
databricks/databricks-sql-python 的其他 Issue
-
難度 2/5 1-3 小時 新手友好度 78/100
-
難度 2/5 1-3 小時 新手友好度 76/100
-
難度 2/5 1-3 小時 新手友好度 78/100
-
難度 2/5 1-3 小時 新手友好度 72/100
-
難度 2/5 1-3 小時 新手友好度 84/100
查看 databricks/databricks-sql-python 的全部 Issue
相似的 Issue
-
fix: inaccuracy ⚠️
難度 2/5 1-3 小時 新手友好度 72/100
uabrc/uabrc.github.io#1255 · 1 則留言 ·
-
難度 2/5 1-3 小時 新手友好度 84/100
ethereum-optimism/factory#64 ·
-
難度 2/5 1-3 小時 新手友好度 90/100
duckdb/duckdb-python#627 ·
-
難度 2/5 1-3 小時 新手友好度 68/100
-
documentation
難度 1/5 1 小時以內 新手友好度 78/100
Qiskit/qiskit-addon-sqd#376 ·