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

[BUG] Zip download missing extension, silent fail on empty

オープン 初心者向け
#523 コメント 0 件 リアクション 0 件 担当者 0 名 GitHub で見る

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

@yuviiios がすでに取り組んでいます。

2026年8月10日 から。

  • #524 @yuviiios による — オープン
  • #544 @Rithish-2914 による — オープン

評価

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

調査の方向性

src/context/filterContext.tsx から始め、fetch の失敗処理について 150–164 行目を、ダウンロードファイル名について 180 行目を確認します。複数の papers を使って Catalogue のダウンロードを再現し、すべてが失敗するネットワークケースも含め、ファイル名に .zip 拡張子が付いていること、失敗時に error toast が表示されること、部分的に成功した場合にダウンロード数が報告されることを検証します。

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

説明

Describe the bug
Zip download lacks file extension and shows success even when download fails entirely.

To Reproduce

  1. Go to Catalogue page
  2. Select 2+ papers
  3. Click "Download Selected"
  4. (Optional: throttle network in DevTools to simulate all requests failing)
  5. File downloads with no .zip extension
  6. If all fetches failed, empty ZIP is created but success toast still appears

Expected behavior

  • Downloaded file should have .zip extension (e.g., Physics.zip)
  • If all paper fetches fail, show error toast instead of success
  • Success message should show count: "Downloaded 3 of 5 papers"

Screenshots
N/A (UX issue — filename shows Physics not Physics.zip in downloads folder)

Desktop

  • OS: Any
  • Browser: Chrome/Firefox/Safari
  • Issue occurs on all browsers

Root cause
File: src/context/filterContext.tsx

  • Line 180: a.download = getDownloadName(...) missing .zip
  • Lines 150–164: Fetch errors silently caught, no success counter
  • Line 186: Always shows success toast regardless of download state

Additional context
Low severity — UX friction, not data loss. User gets empty ZIP but can retry.

主要言語
TypeScript
スター
21
フォーク
65
平均マージ
1日 18時間
マージ済み PR(30日)
10

環境構築

はじめの一歩

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

CodeChefVIT/papers-codechef のほかの issue

CodeChefVIT/papers-codechef の issue をすべて見る

似ている issue

TypeScript の issue をもっと見る

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

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