natsukagami / kjudge

A simple system for hosting competitive programming contests.
GNU Affero General Public License v3.0
23 stars 11 forks source link

Test.Verify fails when uploading multiple tests #86

Closed Unknown15082 closed 1 year ago

Unknown15082 commented 1 year ago

What version are you encountering the bug in? master branch with go1.20.3

Describe the bug When the user upload multiple tests at the same time, kjudge returns an error: input must not be null.

To Reproduce Steps to reproduce the behavior:

  1. Go to a specific contest > problem > test group.
  2. Upload multiple tests

Expected behavior It is expected that kjudge uploads all testcases.

Additional context Apparently, a breaking change in golang from 1.18 to 1.20 has changed the behavior of overloaded parameters in LazyTest.