[coverage] Conformance findings: SESSION-010

オープン
#883 コメント 0 件 リアクション 0 件 担当者 0 名 GitHub で見る

まだ誰も着手していません。

評価

難易度
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 テストを確認します。セッション開始時の認証失敗で、汎用メッセージだけを返すのではなく、サーバーの詳細と HTTP 401 ステータスが表面化する RequestError に保持されれば完了です。

索引モデルが 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分
マージ済み PR(30日)
10

コントリビューションガイド

コントリビューションガイドを開く

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

databricks/databricks-sql-python のほかの issue

databricks/databricks-sql-python の issue をすべて見る

似ている issue

Python の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。