Skip to content

SELECT command in Send Command can change database on shared cluster client #462

Description

@ravjotbrar

Description

On cluster connections, all connectionIds share a single GlideClusterClient. If a user runs SELECT <N> via Send Command, it changes the active database on the shared connection, affecting all other users/connections using that cluster client.

Possible Fix

Add SELECT to the command confirm list for cluster connections, since database selection should only happen at connection time via the databaseId client option.

Metadata

Metadata

Assignees

No one assigned

    Labels

    area/serverBackend, WebSocket, actions

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions