Skip to content

Fix crash in Gitblit Authority for deleted users #1435

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

Merged
merged 1 commit into from
Nov 1, 2022

Conversation

flaix
Copy link
Member

@flaix flaix commented Oct 31, 2022

When a user had a certificate, i.e. an entry in the Gitblit Authority database, but the user was deleted from the Gitblit database, then the Authority application crashes upon loading. This patch prevents the crash. The deleted user is no longer shown in the Authority. But the database entry still is kept. This should be improved to show deleted users and give the possibility to delete them from the Authority's database.

This fixes #1359

When a user had a certificate, i.e. an entry in the Gitblit Authority
database, but the user was deleted from the Gitblit database, then the
Authority application crashes upon loading. This patch prevents the
crash. The deleted user is no longer shown in the Authority. But the
database entry still is kept. This should be improved to show deleted
users and give the possibility to delete them from the Authority's
database.

This fixes gitblit-org#1359
@flaix flaix added this to the 1.10.0 milestone Oct 31, 2022
@flaix flaix added the hacktoberfest-accepted Accepted Hacktoberfest contribution, will merge later. label Nov 1, 2022
@flaix flaix merged commit 6636565 into gitblit-org:master Nov 1, 2022
@flaix flaix deleted the fix-authority-np branch November 1, 2022 00:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
hacktoberfest-accepted Accepted Hacktoberfest contribution, will merge later.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

GitblitAuthority NullPointerException when authority.conf has user entries that are not in users.conf
1 participant