Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Closed
gabriel-vasile opened this issue Aug 3, 2022 · 1 comment · Fixed by #20655
Closed

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

gabriel-vasile opened this issue Aug 3, 2022 · 1 comment · Fixed by #20655
Labels
Milestone

Comments

@gabriel-vasile
Copy link
Contributor

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

@lunny lunny closed this as completed in 6c218f7 Aug 4, 2022
@gabriel-vasile gabriel-vasile changed the title Unable to generate repo is template has no Issue Labels Unable to generate repo if template has no Issue Labels Aug 4, 2022
vsysoev pushed a commit to IntegraSDL/gitea that referenced this issue Aug 10, 2022
@wxiaoguang wxiaoguang added this to the 1.17.1 milestone Aug 11, 2022
@wxiaoguang
Copy link
Contributor

Wait for backport

@wxiaoguang wxiaoguang reopened this Aug 11, 2022
zeripath pushed a commit to zeripath/gitea that referenced this issue Aug 17, 2022
zeripath added a commit that referenced this issue Aug 17, 2022
…20836)

Backport #20655

Fix #20654

Co-authored-by: Gabriel Vasile <[email protected]>
Co-authored-by: 6543 <[email protected]>
Co-authored-by: Lauris BH <[email protected]>
Co-authored-by: techknowlogick <[email protected]>
@go-gitea go-gitea locked and limited conversation to collaborators May 3, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants