Hacktoberfest 2026:メンテナが10月に向けて印を付けた、オープンで初心者向けの issue。 Hacktoberfest の issue を見る

PostgreSQL log store returns 500 for a NUL byte or invalid UTF-8 in a text parameter

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

メンテナーはふだん 1 日以内に返信

@Mohil-Ahuja がすでに取り組んでいます。

2026年10月10日 から。

  • #1143 @Mohil-Ahuja による — オープン

評価

難易度
3/5
見積もり時間
1〜2日
初心者へのやさしさ
65/100
issue の種類
バグ
明瞭さ
明確に書かれている
活発さ
活発
技術スタック
go, postgresql

調査の方向性

Start by locating validation for text query parameters and parsing of next/prev cursors, then check the tests for the PostgreSQL and ClickHouse log stores. Add or extend tests for NUL bytes and invalid UTF-8 in both inputs. Done means these inputs are rejected with a 400 or 422 before querying, consistently across log stores.

索引モデルが issue の本文から書いたものです。

説明

With the PostgreSQL log store, a text query parameter that PostgreSQL cannot store returns a 500:

GET /api/v1/events?tenant_id=%00

PostgreSQL answers invalid byte sequence for encoding "UTF8" (SQLSTATE 22021) and the API reports an internal server error. A hand-built next or prev cursor whose id contains a NUL byte or invalid UTF-8 gets the same 500. The ClickHouse log store returns 200 for such a cursor.

Expected: a 400 (or 422) for input the API cannot use, on every log store. The fix is to reject NUL bytes and invalid UTF-8 in text parameters before the query runs.

主要言語
Go
スター
1.1k
フォーク
70
平均マージ
1日 3時間
マージ済み PR(30日)
50

環境構築

このプロジェクトには開発コンテナ、Dockerfile、コントリビューションガイドがありません。まず README を読み、一般的な手順ははじめてのコントリビューションガイドを参照してください。

はじめの一歩

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

hookdeck/outpost のほかの issue

hookdeck/outpost の issue をすべて見る

似ている issue

Go の issue をもっと見る

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

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