Bug #57239 Connections without username via proxy give critical error
Submitted: 5 Oct 2010 7:08 Modified: 5 Nov 2010 18:35
Reporter: Thies Meincke Email Updates:
Status: No Feedback Impact on me:
None 
Category:MySQL Proxy Severity:S3 (Non-critical)
Version:0.8.1 OS:Linux (OpenSuse 11.2 64bit)
Assigned to: CPU Architecture:Any

[5 Oct 2010 7:08] Thies Meincke
Description:
Connections to a MySQL-Server without username via proxy give critical error:

2010-10-04 10:09:09: (critical) proxy-plugin.c.1723: (disconnect_client) [string "/root/reporter.lua"]:45: attempt to index field 'process' (a nil value)

with reporter.lua (can easily be corrected within reporter.lua by an additional
if, eg. if proxy.global.process then ....)

However, if done so, this happens: 

2010-10-05 08:51:19: (critical) network-socket-lua.c:81: sock->challenge: (nil), sock->response: (nil) (looking for username)

<host> is the mysql-proxy, which is listening on port 3306 and is connected to a backend with MySQL 5.1.36 (OpenSuse 11.2)

It is a minor hassle, but I think this case should be handled properly within mysql-proxy.

regards,

Thies

How to repeat:
It happens e.g. when connecting like this

telnet <host> 3306
Trying <host>...
Connected to <host>.
Escape character is '^]'.
8
5.1.36-log),Q7^Sd~l���"bH#s=sMf;0"^]
telnet> quit
Connection closed.
[5 Oct 2010 18:35] Sveta Smirnova
Thank you for the report.

I can not repeat described behavior. Please send us options you start proxy with.
[6 Nov 2010 0:16] Bugs System
No feedback was provided for this bug for over a month, so it is
being suspended automatically. If you are able to provide the
information that was originally requested, please do so and change
the status of the bug back to "Open".