Skip to content

(re-)enabling container registry fails silently #20478

Closed
@bkroll

Description

@bkroll

Description

In our gitea instance, we can't activate or re-activate the packages registry.

When we activate the registry in the repository settings, it is not saved when clicking "update settings" - the checkbox stays unchecked. On newly created repos, the registry is activated, but can't be re-activated once deactivated.

on an existing repository

  1. activate checkbox "enable repository packages registry"
  2. click "update settings"
  3. settings page reloads, but shows registry checkbox unchecked and registry tab is not visible

This is logged:

gitea     | 2022/07/25 14:26:55 [62de8c0f] router: completed POST /..../testasdzhssdsDAZDSKZ/settings for 194.95.59.130:0, 303 See Other in 12.7ms @ repo/setting.go:106(repo.SettingsPost)
gitea     | 2022/07/25 14:26:55 [62de8c0f-7] router: completed GET /..../testasdzhssdsDAZDSKZ/settings for 194.95.59.130:0, 200 OK in 13.7ms @ repo/setting.go:101(repo.Settings)

on a new repository

  1. create new repository
  2. the registry is activated and the tab is available
  3. de-activate checkbox "enable repository packages registry"
  4. click "update settings"
  5. activate checkbox "enable repository packages registry"
  6. click "update settings"
  7. settings page reloads, but shows registry checkbox unchecked and registry tab is not visible

Gitea Version

1.17.0+rc2

Can you reproduce the bug on the Gitea demo site?

No

Log Gist

No response

Screenshots

No response

Git Version

2.36.2

Operating System

Linux 7527b30b74d2 5.4.0-122-generic #138-Ubuntu SMP Wed Jun 22 15:00:31 UTC 2022 x86_64 Linux

How are you running Gitea?

using docker-compose as described here

Database

SQLite

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