Unsupported Excel export types return HTTP 500

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

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

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

評価

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

調査の方向性

app/controllers/admin_routes/excelDownload.pyから始め、エンドポイントがエクスポートの種類をどのように選択し、completePathを/excel/conflicts/202112に対してどのように設定するかを追ってください。Cross-listedとSpecial Topicsのダウンロードについて、既存のルートまたはテストを確認してください。非対応の種類が制御された4xxレスポンスを返し、既存の学期について両方の対応済みダウンロードが引き続き機能すれば完了です。

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

説明

Description

The secondary Excel export endpoint used by Cross-listed Courses throws a server error for an unsupported export type. This is reproducible with a mistyped or stale export URL.

Steps to Reproduce

  1. In a local CAS development instance, request /excel/crossListed/202112 as an administrator.
  2. Request /excel/conflicts/202112 directly.

Expected Behavior

Supported types download a workbook. Unsupported types receive a clear 400 or 404 response.

Actual Behavior

The cross-listed export returns 200 and the XLSX content type. The unsupported type returns 500 with UnboundLocalError for completePath. Reproduced locally on 7697416.

Acceptance Criteria

  • Unsupported types return a controlled 4xx response.
  • Cross-listed and Special Topics Excel downloads still succeed for an existing term.

Affected file: app/controllers/admin_routes/excelDownload.py.

<img width="990" height="636" alt="image" src="https://github.com/user-

主要言語
JavaScript
スター
0
フォーク
4
平均マージ
6日 6分
マージ済み PR(30日)
5

環境構築

Codespaces で開く

このプロジェクトの開発コンテナを、あなたの GitHub アカウントでブラウザ上に起動します。

  • Dockerfile・Docker Compose ファイルなし
  • プルリクエストのテンプレートあり
  • コントリビューションガイドなし

はじめの一歩

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

BCStudentSoftwareDevTeam/cas のほかの issue

BCStudentSoftwareDevTeam/cas の issue をすべて見る

似ている issue

JavaScript の issue をもっと見る

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

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