go-gitea / gitea

Git with a cup of tea! Painless self-hosted all-in-one software development service, including Git hosting, code review, team collaboration, package registry and CI/CD
https://gitea.com
MIT License
44.6k stars 5.45k forks source link

Member in "Owners" Team of priv. Org. "unauthorized" to clone repository #10535

Closed theAkito closed 4 years ago

theAkito commented 4 years ago
Component Version
Kernel 4.19.0-8-amd64 x86_64
Distro Debian GNU/Linux 10 (buster)

Description

Step by step:

  1. Create new user.
  2. Create private Organisation.
  3. Create private repository within private Organisation.
  4. Add new user from step 1 to Owners Team of Organisation (does not matter which Team, it never works).
  5. Try to clone or pull private repository of private organisation with credentials of user from step 1.
  6. git clone https://
    Cloning into ''...
    Username for ''
    Password for ''
    fatal: https://domain.tld/PrivOrg/private-repository.git/info/refs not valid: is this a git repository?
  7. Will always fail, even if new user is Admin of everything.
  8. See log for unauthorized entries...

Note

theAkito commented 4 years ago

User has to sign into Web UI and manually change password himself, to let it be "valid". Then everything works again.

It would be nice, if there was a better error message or if there was a possibility to disable forced manual change of user's password (maybe if sign-in is disabled? I don't know).