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

NZOI / nztrain / 7446315292 / 1
38%
master: 38%

Build:
DEFAULT BRANCH: master
Ran 08 Jan 2024 10:43AM UTC
Files 143
Run time 3s
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 10:41AM UTC coverage: 37.131%. Remained the same
7446315292.1

push

github

web-flow
Fix crash when adding file attachment to problem (#258)

Previously, if there was a validation error when adding a file
attachment to a problem (e.g. "Filepath has already been taken",
"Filepath extension doesn't match file"), then instead of displaying
the validation error message, there would be a 500 Internal Server
Error (First argument in form cannot contain nil or be empty). Full
trace below.

The cause was an incomplete renaming in commit 1e931189 (enable file
attachments for problems, with shared code for filelinks of groups and
problems, 2013-12-19). The code path that triggers when there is a
validation error still used some old variable names, causing the
crash.

Fix by updating those variable names.

Full error trace:

```
Completed 500 Internal Server Error in 764ms (ActiveRecord: 64.1ms)
First argument in form cannot contain nil or be empty excluded from capture: DSN not set

ActionView::Template::Error (First argument in form cannot contain nil or be empty):
    1: <%= form_for @new_filelink, :url => index_path do |f| %>
    2:   <% if @new_filelink.errors.any? %>
    3:     <div id="error_explanation">
    4:       <h2><%= pluralize(@new_filelink.errors.count, "error") %> prohibited this post from being saved:</h2>
  app/views/filelinks/roots/index.html.erb:1:in `_app_views_filelinks_roots_index_html_erb___4252713757973532291_70289880'
  app/controllers/filelinks/roots_controller.rb:88:in `create'
```

2239 of 6030 relevant lines covered (37.13%)

5.61 hits per line

Source Files on job 7446315292.1
  • Tree
  • List 143
  • Changed 1
  • Source Changed 1
  • Coverage Changed 0
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Build 7446315292
  • 99b2e7c7 on github
  • Prev Job for on master (#7427857535.1)
  • Next Job for on master (#7646525385.1)
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

© 2026 Coveralls, Inc