• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

NZOI / nztrain / 7447434470
37%
master: 38%

Build:
Build:
LAST BUILD BRANCH: feature/subtask-scoring
DEFAULT BRANCH: master
Ran 08 Jan 2024 12:32PM UTC
Jobs 1
Files 143
Run time 9s
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

08 Jan 2024 12:27PM UTC coverage: 37.131%. Remained the same
7447434470

push

github

tom93
Render 404 Not Found for invalid problem filelink path

Previously, /problems/:id/files/download/:path with a non-existent
path would crash with Pundit::NotDefinedError (unable to find policy
of nil), because `find_by_filepath` returns nil if the record is not
found and then `authorize @filelink, :show?` fails.

Full error trace:

```
Completed 500 Internal Server Error in 311ms (ActiveRecord: 30.2ms)
unable to find policy of nil excluded from capture: DSN not set

Pundit::NotDefinedError (unable to find policy of nil):
  app/controllers/filelinks/roots_controller.rb:61:in `show'
```

2239 of 6030 relevant lines covered (37.13%)

5.61 hits per line

Jobs
ID Job ID Ran Files Coverage
1 7447434470.1 08 Jan 2024 12:32PM UTC 143
37.13
GitHub Action Run
Source Files on build 7447434470
  • Tree
  • List 143
  • Changed 1
  • Source Changed 1
  • Coverage Changed 0
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • Github Actions Build #7447434470
  • 923f2cd4 on github
  • Prev Build on master (#7446315292)
  • Next Build on fix-filelink-path-404 (#7447449751)
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2025 Coveralls, Inc