Unsupported Excel export types return HTTP 500
Maintainers usually reply within 8 days
Nobody has claimed this yet.
Assessment
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Newbie friendliness
- 82/100
Research direction
Start with app/controllers/admin_routes/excelDownload.py and trace how the endpoint selects export types and sets completePath for /excel/conflicts/202112. Check the existing routes or tests for Cross-listed and Special Topics downloads. Done means unsupported types return a controlled 4xx response while both supported downloads still work for an existing term.
Written by the indexing model from the issue text.
Description
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
- In a local CAS development instance, request
/excel/crossListed/202112as an administrator. - Request
/excel/conflicts/202112directly.
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-
- Dominant language
- JavaScript
- Stars
- 0
- Forks
- 4
- Avg merge
- 6d 6m
- Merged PRs (30d)
- 5
Getting set up
Starts the project's dev container in your browser, under your own GitHub account.
- No Dockerfile or Docker Compose file
- Has a pull request template
- No contributing guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from BCStudentSoftwareDevTeam/cas
-
Fix Duplicate Meeting Days in Development DatabasePossibly taken A pull request linked to this issue is open or already merged. Open
Difficulty 1/5 1-3 hours Newbie friendliness 82/100
BCStudentSoftwareDevTeam/cas#491 ·
Maintainers usually reply within 8 days
-
Difficulty 2/5 1-3 hours Newbie friendliness 82/100
BCStudentSoftwareDevTeam/cas#487 ·
Maintainers usually reply within 8 days
-
Difficulty 1/5 1-3 hours Newbie friendliness 85/100
BCStudentSoftwareDevTeam/cas#486 ·
Maintainers usually reply within 8 days
-
Difficulty 2/5 1-3 hours Newbie friendliness 76/100
BCStudentSoftwareDevTeam/cas#485 ·
Maintainers usually reply within 8 days
-
Special topics rows on the Courses page have misaligned columnsPossibly taken @zapataa0 claimed this 6 days ago. Open
Difficulty 2/5 1-3 hours Newbie friendliness 82/100
BCStudentSoftwareDevTeam/cas#481 · 1 assignee ·
Maintainers usually reply within 8 days
All issues in BCStudentSoftwareDevTeam/cas
Similar issues
-
Difficulty 2/5 1-3 hours Newbie friendliness 64/100
babalae/bettergi-scripts-list#3905 · 1 comment ·
Maintainers usually reply within 1 day
-
[Bug] "Configure Colota" opens Colota with "Invalid configuration: No configuration data in URL"Open
Difficulty 1/5 1-3 hours Newbie friendliness 87/100
dedicatedcode/reitti#1445 ·
Maintainers usually reply within 1 day
-
New tool: Uncle DeskPossibly taken @github-actions claimed this today. Opensubmission triage
Difficulty 1/5 Under an hour Newbie friendliness 85/100
kausalflow/tools#384 · 1 comment ·
Maintainers usually reply within 1 day
-
good first issue
Difficulty 2/5 1-3 hours Newbie friendliness 67/100
-
area: css
Difficulty 2/5 1-3 hours Newbie friendliness 82/100
Maintainers usually reply within 1 day