Middleware API crash when i try verify email of my profile in truecommand docker version

Description

2.1

System Version

2.1-20220104

Middleware Version

when i try verify email of my profile in truecommand docker version i got

[Feb 25 13:43:39][ERROR] Middleware API crash

  • API: rpc/verify_email

  • Args: <nil>

  • Error: runtime error: invalid memory address or nil pointer dereference

  • Backtrace: goroutine 6475 [running]:
    runtime/debug.Stack()
    /usr/local/go/src/runtime/debug/stack.go:24 +0x65
    main.(*ClientAPI).EvaluateRequest.func1()
    /build/src/API.go:30 +0x165
    panic({0xa0c940, 0xf684c0})
    /usr/local/go/src/runtime/panic.go:1038 +0x215
    github.com/emersion/go-smtp.(*Client).Auth(0xc0000d5800, {0x0, 0x0})
    /go/pkg/mod/github.com/emersion/ go-smtp@v0.15.0 /client.go:312 +0x66
    main.SendMail({0xc000581830, 0xad5574}, {0x0, 0x0}, {0xc000581740, 0x11}, {0xc0004ff1f0, 0x1, 0xc0002431f0}, {0xbacfc0, ...})
    /build/src/NOTIFY-email.go:142 +0x131
    main.(*EmailSettings).sendNotify(0xc000067220, {0xaf17f4, 0x25}, {0xc000386280, 0x7b}, {0xc000243470, 0xc000443240, 0x0})
    /build/src/NOTIFY-email.go:104 +0x470
    main.(*EmailSettings).SendVerificationEmail(...)
    /build/src/NOTIFY-email.go:109
    main.(*ClientAPI).EvaluateAPI_RPC(0xc000338f00)
    /build/src/API-rpc.go:159 +0x1d28
    main.(*ClientAPI).EvaluateRequest(0x0)
    /build/src/API.go:37 +0x1358
    main.HandleTCPMessage({0xbb7500, 0xc0000ff880}, 0xc0003dff00)
    /build/src/API.go:210 +0xa45
    net/http.HandlerFunc.ServeHTTP(0x7f39e21a2008, {0xbb7500, 0xc0000ff880}, 0xc0000ff880)
    /usr/local/go/src/net/http/server.go:2046 +0x2f
    net/http.(*ServeMux).ServeHTTP(0x0, {0xbb7500, 0xc0000ff880}, 0xc0003dff00)
    /usr/local/go/src/net/http/server.go:2424 +0x149
    net/http.serverHandler.ServeHTTP({0xbb6320}, {0xbb7500, 0xc0000ff880}, 0xc0003dff00)
    /usr/local/go/src/net/http/server.go:2878 +0x43b
    net/http.(*conn).serve(0xc0000f2b40, {0xbb99c0, 0xc0001aa240})
    /usr/local/go/src/net/http/server.go:1929 +0xb08
    created by net/http.(*Server).Serve
    /usr/local/go/src/net/http/server.go:3033 +0x4e8

Activity

Zack 
March 11, 2022 at 2:43 PM

Also set up a postfix/dovecot locally hosted server to verify nopassword verification. My far most of my time on this ticket was spent setting that up. Fortunately I can use this to test SMTP in the future, as well as for other projects.

Bug Clerk 
March 11, 2022 at 2:35 PM

Bug Clerk 
March 11, 2022 at 1:42 PM

Zwf 
March 10, 2022 at 2:04 PM

let me know if need anything else from me.

Zack 
March 10, 2022 at 1:24 PM

This was caused by the SMTP handler requiring SASL Auth, which wasn't provided if there's no password. This has been fixed and I'm currently testing various configurations.

Complete

Details

Assignee

Reporter

Time remaining

0m

Components

Fix versions

Affects versions

Priority

Katalon Platform

Created February 27, 2022 at 6:53 PM
Updated July 1, 2022 at 4:15 PM
Resolved March 11, 2022 at 2:43 PM