Bug #25033 | Exception raised/ HANG if no SELECT privileges granted for stored procedure call | ||
---|---|---|---|
Submitted: | 13 Dec 2006 10:51 | Modified: | 21 Jan 2014 23:03 |
Reporter: | Markus Wolters | Email Updates: | |
Status: | Closed | Impact on me: | |
Category: | Connector / NET | Severity: | S1 (Critical) |
Version: | 1.0.8RC | OS: | Windows (Windows XP) |
Assigned to: | CPU Architecture: | Any | |
Tags: | exception, privileges, SELECT, stored procedure |
[13 Dec 2006 10:51]
Markus Wolters
[13 Dec 2006 12:04]
Markus Wolters
I issued severity S1 because after further investigation, there's something wrong after that Exception. Somebody has to restart IIS completly to work with new connections to MySQL. There seams to be a problem with lock (idlePool.SyncRoot) on some places because it goes into a deadlock. I can't find out exactly what the problem is. There's also a weired thing here (Maybe that's the real problem): MySqlDataReader.Read() { [...] try { try { } catch (MySqlException ex) { if (ex.IsFatal) connection.Terminate(); <--------- TERMINATION throw; } catch (Exception ex) { } finally { connection.SetState(ConnectionState.Open); <- OVERRIDE ON CLOSE CONNECTION } }
[14 Dec 2006 13:53]
Tonci Grgin
Hi Markus and thanks for your problem report. Loking into latest 1.0.x sources I see we're still caling "SHOW CREATE ". Procedure body for non-privileged user is not returned.
[14 Dec 2006 14:17]
Markus Wolters
Hi Tonci, the thing is, I'm wondering especially about the hang. With 1.0.7 I get shown an exception about missed SELECT privileges as expected. But with this release the application is just hanging, like in a deadlock or something. Do you get that hung too? Markus
[14 Dec 2006 18:14]
Reggie Burnett
This can't be fixed until the server exposes proc parameters via information schema. The changelog entry was wrong and a new entry will be added indicating that select privs on the mysql database is required to run sprocs.