Unable to generate repo if template has no Issue Labels #9337

Closed
opened 2025-11-02 08:35:52 -06:00 by GiteaMirror · 1 comment
Owner

Originally created by @gabriel-vasile on GitHub (Aug 3, 2022).

Description

To reproduce in web UI:

  1. create a repo and check "Mark repository as template"
  2. create another repo using the template in step 1. In "Template Items", check "Issue Labels" checkmark.

What I expected: step 2 creates a new, empty repo
What happened: status code 500, web/repo/repo.go:195:handleCreateError() [E] CreatePost: no element on slice when insert.

Gitea Version

 1.18.0+dev-209-g7a31292c2 built with GNU Make 4.3, go1.18 : bindata, sqlite, sqlite_unlock_notify

Can you reproduce the bug on the Gitea demo site?

Yes

Log Gist

No response

Screenshots

No response

Git Version

No response

Operating System

No response

How are you running Gitea?

./gitea web

Database

No response

Originally created by @gabriel-vasile on GitHub (Aug 3, 2022). ### Description To reproduce in web UI: 1. create a repo and check "Mark repository as template" 2. create another repo using the template in step 1. In "Template Items", check "Issue Labels" checkmark. What I expected: step 2 creates a new, empty repo What happened: status code 500, `web/repo/repo.go:195:handleCreateError() [E] CreatePost: no element on slice when insert`. ### Gitea Version 1.18.0+dev-209-g7a31292c2 built with GNU Make 4.3, go1.18 : bindata, sqlite, sqlite_unlock_notify ### Can you reproduce the bug on the Gitea demo site? Yes ### Log Gist _No response_ ### Screenshots _No response_ ### Git Version _No response_ ### Operating System _No response_ ### How are you running Gitea? ./gitea web ### Database _No response_
GiteaMirror added the type/bug label 2025-11-02 08:35:52 -06:00
Author
Owner

@wxiaoguang commented on GitHub (Aug 11, 2022):

Wait for backport

@wxiaoguang commented on GitHub (Aug 11, 2022): Wait for backport
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/gitea#9337