-
-
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
MYSQL: Database error on installation #1283
Comments
We haven't tested on Mariadb although it should be the same as MySQL. |
Just tested this on a fresh install of prebuilt 1.1.0 with 10.0.29-MariaDB-0ubuntu0.16.04.1 on Ubuntu 16.04. InnoDB as engine. Edit:: But 1.1.0+38-gf1d2f16 fails... |
I can confirm this happening with MariaDB as well. Tried using the docker image 81f5b797cd07 (latest as of March 16 at 5:41 PM EST), and I was getting this error when trying a fresh install of gitea. Trying with the image tagged 1.1.0 works just fine. |
Oh, maybe it's effected by GPG PR. Let me check. |
This is the bug here. A |
From https://tools.ietf.org/html/rfc4880#section-12.2 "The Key ID is the |
and in fact it's not even usefull to be a index since. I don't use the keyid to find key. |
Changing from "INDEX TEXT NOT NULL" to "TEXT NOT NULL" solves the problem - at least for me. |
@sapk so maybe we change the tag from |
it should but I can't test right now. |
I will send a PR to fix this. |
In fact we could even use a uint64 ? |
I have found maybe a optimization for validating more "quickly" since keyid is in signature but not I will have to test it a lot. So repassing #1150 in WIP |
OK |
To be more simple it will stay in string format for DB since it will limit format at display but I will use https://github.com/golang/crypto/blob/master/openpgp/packet/public_key.go#L705 the same func to transform uint64 of the keyid store in sign to search only for the good key and not pass over each key of user. |
[x]
):Description
Getting the following Database Error when installing on a empty Database.
Database setting is not correct: Error 1170: BLOB/TEXT column 'key_id' used in key specification without a key length
MySQL-Server Version:
10.0.30-MariaDB-0+deb8u1
Screenshots
The text was updated successfully, but these errors were encountered: