-
-
Notifications
You must be signed in to change notification settings - Fork 5.6k
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
Index out of range exception for the SSH Public Key page after deletion of auth source #31730
Comments
might be similar to this error but it seems it got closed before deeper analysis #26959 potential solution might be checking for ssh keys upon auth source deletion or making the loop in |
GiteaBot
pushed a commit
to GiteaBot/gitea
that referenced
this issue
Aug 15, 2024
…tea#31829) Fix go-gitea#31730 This PR rewrote the function `PublicKeysAreExternallyManaged` with a simple test. The new function removed the loop to make it more readable.
project-mirrors-bot-tu bot
pushed a commit
to project-mirrors/forgejo-as-gitea-fork
that referenced
this issue
Jan 23, 2025
…tea#31829) (go-gitea#31836) Backport go-gitea#31829 by @lunny Fix go-gitea#31730 This PR rewrote the function `PublicKeysAreExternallyManaged` with a simple test. The new function removed the loop to make it more readable. Co-authored-by: Lunny Xiao <xiaolunwen@gmail.com> (cherry picked from commit 5fa90ad)
project-mirrors-bot-tu bot
pushed a commit
to project-mirrors/forgejo-as-gitea-fork
that referenced
this issue
Jan 23, 2025
…tea#31829) Fix go-gitea#31730 This PR rewrote the function `PublicKeysAreExternallyManaged` with a simple test. The new function removed the loop to make it more readable. (cherry picked from commit b491b21) (cherry picked from commit d550042)
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Description
If you have one ldap auth source and have ssh public key synchronisation in use. Keys in the database table get inserted with the login_source reference. When deleting an auth source gitea checks for references in the user table still using it but it does not check the public keys table still referencing it.
So after successfully deleting the auth source, having an old synchronised key will break the page for the particular user with the following exception.
Gitea Version
1.22.1
Can you reproduce the bug on the Gitea demo site?
No
Log Gist
No response
Screenshots
No response
Git Version
2.45.2
Operating System
CoreOS 40.20240701.3.0
How are you running Gitea?
containerized via podman (crun)
Database
MySQL/MariaDB
The text was updated successfully, but these errors were encountered: