Skip to content
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

backup/restore: User.Passwd renamed to .Password between v0.12 and v0.13 - restore fails to restore passwords #7687

Open
1 task done
vallon opened this issue Mar 14, 2024 · 1 comment
Labels
💊 bug Something isn't working

Comments

@vallon
Copy link

vallon commented Mar 14, 2024

Gogs version

v0.12 vs v0.13

Git version

  • Server: n/a
  • Client: n/a

Operating system

n/a

Database

n/a

Describe the bug

In commit 7cbd84d #7196, the field "Passwd" of User was renamed to "Password". In a v0.12 database dump, the gogs-backup/db/User.json uses "Passwd", but in v0.13, it appears as "Password".

When trying to import a v0.12.* (or earlier) dump in v0.13, the Passwd field is dropped, and all Password data is blank.

To reproduce

Try to load a v0.12 backup into v0.13. "select id, passwd from user" shows all password fields are blank.

Expected behavior

Passwords should be restored.

Additional context

No response

Code of Conduct

  • I agree to follow this project's Code of Conduct
@vallon vallon added the 💊 bug Something isn't working label Mar 14, 2024
@vallon
Copy link
Author

vallon commented Mar 14, 2024

@unknwon FYI

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
💊 bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant