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

Network error SyntaxError: when creating issue with assignees from issue template #33521

Closed
bartvdbraak opened this issue Feb 6, 2025 · 3 comments
Labels
Milestone

Comments

@bartvdbraak
Copy link

Description

One of our users has the following issue template:

---

name: Bug Report
about: Help improve CloudRig by submitting a bug report.
ref: "master"
title: ""
assignees: ["Mets"]
labels:

- bug

---

**System Information**
Operating system:

Blender Version: 
CloudRig Version: 

**Exact steps to reproduce the error**
Based on the human metarig or a minimal .blend file.

CC @Mets

The assignees: ["Mets"] gives error such as

Image

When a user tries to create the bug report. It seems to be related to the user not having the permissions to add such an assignee.

When I try to create the report on my Admin account it seems to work fine.

Gitea Version

1.23.1 built with GNU Make 4.4.1, go1.23.5 : bindata, timetzdata, sqlite, sqlite_unlock_notify

Can you reproduce the bug on the Gitea demo site?

Yes

Log Gist

No response

Screenshots

Image
Trying to create issue as normal user

Image
Created issue successfully as admin user

Git Version

2.47.2

Operating System

Ubuntu 24.04

How are you running Gitea?

Docker Compose with source of truth at https://github.com/blender/gitea

Database

PostgreSQL

@silverwind
Copy link
Member

silverwind commented Feb 6, 2025

Can you show the relevant URL and JSON response from the browser's "Network" tab? Is response text just this "Not found." string?

@bartvdbraak
Copy link
Author

I recreated the issue here:

https://projects.blender.org/bartvdbraak/issue-template-test/issues/new?template=.gitea%2fissue_template%2fbug.md

When I try to open a new issue with a non-admin account, it sends this request (I removed some CSRF token and cookie headers):

curl 'https://projects.blender.org/bartvdbraak/issue-template-test/issues/new' \
  -H 'accept: */*' \
  -H 'accept-language: en-US,en;q=0.9' \
  -H 'content-type: multipart/form-data; boundary=----WebKitFormBoundaryBFqVnzVCMkuWqrOb' \
  -H 'origin: https://projects.blender.org' \
  -H 'priority: u=1, i' \
  -H 'sec-ch-ua: "Chromium";v="131", "Not_A Brand";v="24"' \
  -H 'sec-ch-ua-mobile: ?0' \
  -H 'sec-ch-ua-platform: "Linux"' \
  -H 'sec-fetch-dest: empty' \
  -H 'sec-fetch-mode: cors' \
  -H 'sec-fetch-site: same-origin' \
  -H 'user-agent: Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/131.0.0.0 Safari/537.36' \
  --data-raw $'------WebKitFormBoundaryBFqVnzVCMkuWqrOb\r\nContent-Disposition: form-data; name="_csrf"\r\n\r\n<redacted>\r\n------WebKitFormBoundaryBFqVnzVCMkuWqrOb\r\nContent-Disposition: form-data; name="title"\r\n\r\ntest\r\n------WebKitFormBoundaryBFqVnzVCMkuWqrOb\r\nContent-Disposition: form-data; name="content"\r\n\r\ntest\r\n------WebKitFormBoundaryBFqVnzVCMkuWqrOb\r\nContent-Disposition: form-data; name="ref"\r\n\r\nrefs/heads/master\r\n------WebKitFormBoundaryBFqVnzVCMkuWqrOb\r\nContent-Disposition: form-data; name="search"\r\n\r\n\r\n------WebKitFormBoundaryBFqVnzVCMkuWqrOb\r\nContent-Disposition: form-data; name="label_ids"\r\n\r\n1819\r\n------WebKitFormBoundaryBFqVnzVCMkuWqrOb\r\nContent-Disposition: form-data; name="milestone_id"\r\n\r\n0\r\n------WebKitFormBoundaryBFqVnzVCMkuWqrOb\r\nContent-Disposition: form-data; name="project_id"\r\n\r\n0\r\n------WebKitFormBoundaryBFqVnzVCMkuWqrOb\r\nContent-Disposition: form-data; name="assignee_ids"\r\n\r\n46779\r\n------WebKitFormBoundaryBFqVnzVCMkuWqrOb\r\nContent-Disposition: form-data; name="redirect_after_creation"\r\n\r\n\r\n------WebKitFormBoundaryBFqVnzVCMkuWqrOb--\r\n'

This is the reponse I get:

Not found.

@wxiaoguang
Copy link
Contributor

-> #33569

@lunny lunny closed this as completed in e741448 Feb 12, 2025
@lunny lunny added this to the 1.23.4 milestone Feb 12, 2025
GiteaBot pushed a commit to GiteaBot/gitea that referenced this issue Feb 12, 2025
…, fuzzy prompt, mirror proxy, adopt git) (go-gitea#33569)

* Make artifact list output a stable order
* Fix go-gitea#33506
* Fix go-gitea#33521
* Fix go-gitea#33288
* Fix go-gitea#33196
* Fix go-gitea#33561
lunny pushed a commit that referenced this issue Feb 12, 2025
…, fuzzy prompt, mirror proxy, adopt git) (#33569) (#33577)

Backport #33569 by @wxiaoguang

* Make artifact list output has stable order
* Fix #33506
* Fix #33521
* Fix #33288
* Fix #33196
* Fix #33561

Co-authored-by: wxiaoguang <wxiaoguang@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

4 participants