Skip to content

Conversation

@wxiaoguang
Copy link
Contributor

gob.Register must be called before Sessioner

Fix #36016

@GiteaBot GiteaBot added the lgtm/need 2 This PR needs two approvals by maintainers to be considered for merging. label Nov 24, 2025
@github-actions github-actions bot added the modifies/go Pull requests that update Go code label Nov 24, 2025
@wxiaoguang wxiaoguang marked this pull request as draft November 24, 2025 06:33
@wxiaoguang wxiaoguang marked this pull request as ready for review November 24, 2025 08:30
@wxiaoguang
Copy link
Contributor Author

Upstream fix: https://gitea.com/go-chi/session/pulls/11

@wxiaoguang wxiaoguang force-pushed the fix-oauth2-gob branch 2 times, most recently from f14a5bb to 4408afe Compare November 24, 2025 09:05
@wxiaoguang wxiaoguang force-pushed the fix-oauth2-gob branch 2 times, most recently from e2e7a5a to d050b03 Compare November 24, 2025 12:34
@GiteaBot GiteaBot added lgtm/need 1 This PR needs approval from one additional maintainer to be merged. and removed lgtm/need 2 This PR needs two approvals by maintainers to be considered for merging. labels Nov 25, 2025
Domain: setting.SessionConfig.Domain,
})
if err != nil {
return nil, fmt.Errorf("failed to create session middleware: %w", err)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm not sure if the old or the new version of this error message is better.
I think I prefer the old one.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is the old one:

image

@GiteaBot GiteaBot added lgtm/done This PR has enough approvals to get merged. There are no important open reservations anymore. and removed lgtm/need 1 This PR needs approval from one additional maintainer to be merged. labels Nov 26, 2025
@wxiaoguang wxiaoguang merged commit 000c06d into go-gitea:main Nov 26, 2025
25 checks passed
@GiteaBot GiteaBot added this to the 1.26.0 milestone Nov 26, 2025
@wxiaoguang wxiaoguang deleted the fix-oauth2-gob branch November 26, 2025 15:28
silverwind added a commit to silverwind/gitea that referenced this pull request Nov 26, 2025
* origin/main:
  Fix actions lint (go-gitea#36029)
  Fix oauth2 session gob register (go-gitea#36017)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

lgtm/done This PR has enough approvals to get merged. There are no important open reservations anymore. modifies/dependencies modifies/go Pull requests that update Go code

Projects

None yet

Development

Successfully merging this pull request may close these issues.

panic - LinkAccountData

4 participants