Skip to content

500 on CSV diff: runtime error: index out of range #16837

Closed
@silverwind

Description

@silverwind
  • Gitea version (or commit ref): latest 1.15, 0c7927f
  • Git version: 2.33.0
  • Operating system: Ubuntu 20.04

When viewing a certain CSV diff, I see a 500 and this error in the log:

2021/08/27 13:14:14 ...s/context/context.go:195:HTML() [E] Render failed: template: repo/diff/csv_diff:3:15: executing "repo/diff/csv_diff" at <call .root.CreateCsvDiff .file .root.BaseCommit .root.HeadCommit>: error calling call: runtime error: index out of range [-1]

I can't share the particular CSV content but will try to fabricate a file that reproduces that error.

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions