Skip to content

HTTP 500 when changing Organization Full Name #18891

@Genteure

Description

@Genteure

Gitea Version

1.16.2

Git Version

N/A (Docker image)

Operating System

N/A (Docker image)

How are you running Gitea?

via official docker image from docker hub.

Database

SQLite

Can you reproduce the bug on the Gitea demo site?

No

Log Gist

No response

Description

Reproduce steps:

  1. Follow the install instruction from the official doc site, with image changed to gitea/gitea:1.16.2. Complete docker-compose.yml file bellow.
  2. Complete install with everything set to default.
  3. Create two new organization: orga, orgb.
  4. Set the full name of orga to Name A (success)
  5. Set the full name of orgb to Name B (fail with HTTP 500)

Log:

[TIME_REMOVED] Started POST /org/orgb/settings for [IP_REMOVED]
[TIME_REMOVED] ...s/web/org/setting.go:109:SettingsPost() [E] UpdateUser: UNIQUE constraint failed: email_address.lower_email
[TIME_REMOVED] Completed POST /org/orgb/settings 500 Internal Server Error in 3.215974ms

Full docker-compose.yml

version: "3"

networks:
  gitea:
    external: false

services:
  server:
    image: gitea/gitea:1.16.2
    container_name: gitea
    environment:
      - USER_UID=1000
      - USER_GID=1000
    restart: always
    networks:
      - gitea
    volumes:
      - ./gitea:/data
      - /etc/timezone:/etc/timezone:ro
      - /etc/localtime:/etc/localtime:ro
    ports:
      - "3000:3000"
      - "222:22"

Screenshots

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions