Wrong default in max content length if its not defined in site configuration
メンテナーはふだん 1 日以内に返信
まだ誰も着手していません。
評価
調査の方向性
Start by comparing the default declared in ckanext/datapusher_plus/config_declaration.yaml with the value assigned in ckanext/datapusher_plus/config.py. Then inspect the checks in ckanext/datapusher_plus/jobs/stages/download.py around lines 277–286 and 423–426. Reproduce with site configuration unset and a file larger than 5 MB but smaller than 1 GB; done when the file is handled without the reported error.
索引モデルが issue の本文から書いたものです。
説明
Describe the bug
If ckan site configuration does not define ckanext.datapusher_plus.max_content_length, it should use the default declared in
https://github.com/dathere/datapusher-plus/blob/474ce971175ccf1c749299e3143276c12ed65d4d/ckanext/datapusher_plus/config_declaration.yaml#L12-L16
Instead datapusher+ uses the value defined in https://github.com/dathere/datapusher-plus/blob/474ce971175ccf1c749299e3143276c12ed65d4d/ckanext/datapusher_plus/config.py#L86-L88
which results in an error shown with wrong value.
With default values, the code passes this check as conf.PRREVIEW_ROWS is 0.
https://github.com/dathere/datapusher-plus/blob/474ce971175ccf1c749299e3143276c12ed65d4d/ckanext/datapusher_plus/jobs/stages/download.py#L277-L286
But if fails this check as not 0 equals true.
To Reproduce
Steps to reproduce the behavior:
- Do not define site configuration for datapusher+
- Upload file larger than 5Mb and smaller than 1GB
Expected behavior
File should be handled by datapusher+ without errors.
Screenshots
- 主要言語
- Python
- スター
- 47
- フォーク
- 33
- 平均マージ
- 2時間 28分
- マージ済み PR(30日)
- 10
環境構築
このプロジェクトには開発コンテナ、Dockerfile、コントリビューションガイドがありません。まず README を読み、一般的な手順ははじめてのコントリビューションガイドを参照してください。
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
dathere/datapusher-plus のほかの issue
-
難易度 2/5 1〜3時間 初心者へのやさしさ 65/100
dathere/datapusher-plus#359 ·
メンテナーはふだん 1 日以内に返信
-
"Total elapsed time" in the JOB DONE line is ~1.79 billion seconds (perf_counter overwrites the time.time() start)対応中かも @tino097 が 14 日前に担当しました。 オープン
難易度 2/5 1〜3時間 初心者へのやさしさ 35/100
dathere/datapusher-plus#355 ·
メンテナーはふだん 1 日以内に返信
-
FormulaProcessing stage always skipped on CKAN 2.10+: ckan.plugins is a list, stage calls .split() on it対応中かも @tino097 が 14 日前に担当しました。 オープン
難易度 2/5 1〜3時間 初心者へのやさしさ 25/100
dathere/datapusher-plus#354 ·
メンテナーはふだん 1 日以内に返信
-
難易度 4/5 3〜5日 初心者へのやさしさ 48/100
dathere/datapusher-plus#340 ·
メンテナーはふだん 1 日以内に返信
-
難易度 3/5 1〜2日 初心者へのやさしさ 53/100
dathere/datapusher-plus#338 ·
メンテナーはふだん 1 日以内に返信
dathere/datapusher-plus の issue をすべて見る
似ている issue
-
needs-triage
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
gke-labs/kube-agents#5671 ·
メンテナーはふだん 1 日以内に返信
-
docs(auth): Method B step 4 should tell users to tick "Use this client for an AI-powered agent"オープンdocumentation next-release v0.9.6
難易度 1/5 1時間未満 初心者へのやさしさ 88/100
khuisman/mcp-gee-sweet#1446 ·
メンテナーはふだん 1 日以内に返信
-
model:sonnet runtime:claude security size:S
難易度 2/5 1〜3時間 初心者へのやさしさ 75/100
FootprintAI/Containarium#3671 ·
メンテナーはふだん 1 日以内に返信
-
HolidayBase: reassigning `language` does not re-initialize translations or re-populate holidays対応中かも @shikhabhadoria が今日担当しました。 オープン
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
vacanza/holidays#4116 · コメント 1 件 ·
メンテナーはふだん 1 日以内に返信
-
bug CLI exec
難易度 2/5 1〜3時間 初心者へのやさしさ 84/100
メンテナーはふだん 1 日以内に返信