-
-
Notifications
You must be signed in to change notification settings - Fork 6k
Closed
Description
- Gitea version (or commit ref): 1.10.0
- Operating system: ArchLinux
- Can you reproduce the bug at https://try.gitea.io:
- Yes (provide example URL)NoNot relevantTo pick up a draggable item, press the space bar. While dragging, use the arrow keys to move the item. Press space again to drop the item in its new position, or press escape to cancel.
- Log gist:
Description
When setting an smtp logger, I get this:
panic: Failed to create sublogger (smtp): json: cannot unmarshal string into Go struct field SMTPLogger.sendTos of type []string
goroutine 1 [running]:
code.gitea.io/gitea/modules/log.NewLogger(0x2710, 0xc0007c13d0, 0x4, 0xc0007c13d0, 0x4, 0xc0004be600, 0xff, 0xc0007abf00)
code.gitea.io/gitea@/modules/log/log.go:48 +0x1b3
code.gitea.io/gitea/modules/setting.newLogService()
code.gitea.io/gitea@/modules/setting/log.go:263 +0x7a0
code.gitea.io/gitea/modules/setting.NewLogServices(0xc00182e200)
code.gitea.io/gitea@/modules/setting/log.go:282 +0x24
code.gitea.io/gitea/modules/setting.NewServices()
code.gitea.io/gitea@/modules/setting/setting.go:1047 +0x32
code.gitea.io/gitea/routers.NewServices()
code.gitea.io/gitea@/routers/init.go:44 +0x24
code.gitea.io/gitea/routers.GlobalInit()
code.gitea.io/gitea@/routers/init.go:79 +0x358
code.gitea.io/gitea/cmd.runWeb(0xc0000f0dc0, 0x0, 0x0)
code.gitea.io/gitea@/cmd/web.go:108 +0x75
github.com/urfave/cli.HandleAction(0xdf2e200c080, 0xdf2e22a1010, 0xc0000f0dc0, 0xc0000cf300, 0x0)
github.com/urfave/cli@v1.20.0/app.go:490 +0xca
github.com/urfave/cli.Command.Run(0xdf2df180dcf, 0x3, 0x0, 0x0, 0x0, 0x0, 0x0, 0xdf2df1afbf8, 0x16, 0x0, ...)
github.com/urfave/cli@v1.20.0/command.go:210 +0x993
github.com/urfave/cli.(*App).Run(0xc0000b9040, 0xc0000d0000, 0x4, 0x4, 0x0, 0x0)
github.com/urfave/cli@v1.20.0/app.go:255 +0x6ad
main.main()
code.gitea.io/gitea@/main.go:109 +0x818
Under [log.smtp]
, I’m only doing this:
-HOST =
+HOST = 127.0.0.1:25
-RECEIVERS =
+RECEIVERS = someuser@somedomain.com
Metadata
Metadata
Assignees
Labels
Type
Projects
Relationships
Development
Select code repository
Activity
zeripath commentedon Nov 25, 2019
Try:
RECEIVERS = [someuser@somedomain.com]
ArchangeGabriel commentedon Nov 25, 2019
Doesn’t work either.
zeripath commentedon Nov 25, 2019
Damn, I think this should work:
(Clearly this is not ideal UI, we should be splitting the strings ourselves, but I'm trying to get this to work first before we have to put out a bugfix)
Nope that doesn't work either.
Fix go-gitea#9151 - sendTos should be an array
zeripath commentedon Nov 25, 2019
Sorry about this. Clearly you're the first person to try this and I missed it when I was writing the code!
I do apologise.
ArchangeGabriel commentedon Nov 25, 2019
That’s OK. ;) Bugs happen, the important thing is to fix them. :)
I’ll try your PR when I’ll have time to build a patched version (i.e. at least not today).
Fix #9151 - smtp logger configuration sendTos should be an array (#9154)
Fix go-gitea#9151 - smtp logger configuration sendTos should be an ar…
Fix #9151 - smtp logger configuration sendTos should be an arra… (#9157)
ArchangeGabriel commentedon Jan 3, 2020
I can confirm this now works correctly (well at least it does not crash, did not received an email yet). :)
Merge tag 'v1.11.0-rc1'