UMM JSON search responses are not gzipped when the request accepts gzip

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

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

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

評価

難易度
3/5
見積もり時間
1〜2日
初心者へのやさしさ
62/100
issue の種類
バグ
明瞭さ
おおむね明確
活発さ
活発
技術スタック
clojure
領域
api, backend

調査の方向性

Reproduce both curl requests from the issue and compare the content-encoding headers for .json and .umm_json. Start by locating the response-compression middleware used by the search routes and the content-type allowlist that covers application/json but appears not to cover the UMM JSON media type. Check the search/middleware tests for response-header assertions; done means .umm_json returns content-encoding: gzip when accepted, while existing JSON behavior and uncompressed requests stay unchanged.

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

説明

A granule search returned as UMM JSON is not compressed when the request sends Accept-Encoding: gzip, although the same search returned as JSON is. The output below is from 2026-11-23.

$ curl -sS -o /dev/null -D - -H 'Accept-Encoding: gzip' 'https://cmr.earthdata.nasa.gov/search/granules.json?collection_concept_id=C2076104650-LPCLOUD&page_size=100' | grep -i -E '^content-(type|encoding|length)'
content-type: application/json;charset=utf-8
content-encoding: gzip
$ curl -sS -o /dev/null -D - -H 'Accept-Encoding: gzip' 'https://cmr.earthdata.nasa.gov/search/granules.umm_json?collection_concept_id=C2076104650-LPCLOUD&page_size=100' | grep -i -E '^content-(type|encoding|length)'
content-type: application/vnd.nasa.cmr.umm_results+json;version=1.6.7; charset=utf-8
content-length: 1133709

The 1,133,709-byte UMM JSON body compresses to 29,843 bytes with gzip:

$ curl -sS 'https://cmr.earthdata.nasa.gov/search/granules.umm_json?collection_concept_id=C2076104650-LPCLOUD&page_size=100' | gzip | wc -c
   29843

Expected: a UMM JSON response is gzipped when the request accepts gzip, as a JSON response is.

主要言語
Clojure
スター
403
フォーク
111
平均マージ
2日 4時間
マージ済み PR(30日)
13

環境構築

はじめの一歩

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

nasa/Common-Metadata-Repository のほかの issue

nasa/Common-Metadata-Repository の issue をすべて見る

似ている issue

Clojure の issue をもっと見る

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

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