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

Activity

added this to the 1.16.3 milestone on Feb 25, 2022
added a commit that references this issue on Feb 26, 2022
52acc06
added a commit that references this issue on Feb 26, 2022
33e19c8
added a commit that references this issue on Mar 28, 2022
2ca69ba
locked and limited conversation to collaborators on Apr 28, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

      Development

      Participants

      @lunny@Genteure

      Issue actions

        HTTP 500 when changing Organization Full Name · Issue #18891 · go-gitea/gitea