These are chat archives for go-gitea/gitea

19th
Mar 2017
Gregor Santner
@gsantner
Mar 19 2017 10:31
from HEAD
Lunny Xiao
@lunny
Mar 19 2017 10:33
I will send a PR to fix that
Gregor Santner
@gsantner
Mar 19 2017 10:34
It's just a empty textfile
Lunny Xiao
@lunny
Mar 19 2017 10:34
Yes. I see
go-gitea/gitea#1326
please review
Sandro Santilli
@strk
Mar 19 2017 10:46
    if err := x.
            Where("uid=?", uid).
            Find(&openids).
            OrderBy("id ASC"); 
fails: models/user_openid.go:33: x.Where("uid=?", uid).Find(&openids).OrderBy undefined (type error has no field or method OrderBy)
OrderBy(..).Find(...) builds
Lunny Xiao
@lunny
Mar 19 2017 10:47
@strk
        if err := x.
                Where("uid=?", uid).
                Asc(“id").
                Find(&openids); err != nil {
       }
Sandro Santilli
@strk
Mar 19 2017 10:47
but those are still coming unordered :(
ok, actually works
so now what's left is figuring why the update doesn't work
Lunny Xiao
@lunny
Mar 19 2017 10:48
you can check the generated SQL log
Gregor Santner
@gsantner
Mar 19 2017 10:50

I got:

2017/03/19 11:49:37 [I] Log Mode: File(Info)
2017/03/19 11:49:37 [I] XORM Log Mode: File(Info)
2017/03/19 11:49:37 [I] Cache Service Enabled
2017/03/19 11:49:37 [I] Session Service Enabled
2017/03/19 11:49:37 [...itea/routers/init.go:54 GlobalInit()] [E] Failed to 
initialize ORM engine: sync database struct error: Error 1170: 
BLOB/TEXT column 'key_id' used in key specification without a key length

Is this the file you are talking about?

Gregor Santner
@gsantner
Mar 19 2017 10:55
BTW: Was there ever a GPG ui in settings? Wanted to add them today, but had only SSH but no GPG option. I'm not sure if I had seen it before :D
Lunny Xiao
@lunny
Mar 19 2017 10:55
@gsantner I have sent a PR to fix that.
go-gitea/gitea#1303
Gregor Santner
@gsantner
Mar 19 2017 10:56
ah, should have search bug tracker
just was not sure if it was there, since I dindt use it yet
Sandro Santilli
@strk
Mar 19 2017 11:10
@lunny: generated SQL uses parameters so I dunno what's the paremeter
but I see the "show" field remains set to false
which means u.Show = !u.Show isn't working
Sandro Santilli
@strk
Mar 19 2017 11:18
is that wrong syntax for Go ? (u.Show is a bool type)
Sandro Santilli
@strk
Mar 19 2017 14:57
please review go-gitea/gitea#1324 @geek1011
Manuel Rüger
@mrueg
Mar 19 2017 21:30
does gitea provide a way to set a general PREFIX for all paths in app.ini config?
Thomas Boerger
@tboerger
Mar 19 2017 21:57
The custom path acts for most paths but not all as far as I know
Eike Kettner
@eikek
Mar 19 2017 23:43
Hello, I just checked out gitea and find it very very nice! Thank you for creating this. I also have a question: Can I make gitea doing authentication by maybe executing a script or an http post request to my url? I don't have an OpenID provider, only an http endpoint.
Kim "BKC" Carlbäcker
@bkcsoft
Mar 19 2017 23:52
@eikek Currently you can only do that with "reverse authentication" and "enable auto-registration" :)
Eike Kettner
@eikek
Mar 19 2017 23:58
thanks, that sounds like reading nginx config docs…:-) are there any links you could share? The link in the default config on REVERSE_AUTHENTICATION links to issue #165, and I don't get how that relates :worried: