You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Preconditions
Redis cluster where node host names contain one or more hyphens (ie myredis-0002-001)
Note that AWS Elasticache Redis instances with cluster mode enabled use hyphens in the shard/node names.
Steps to reproduce
Connect to Redis cluster that contains node names with hyphens in them
Click "Scan more" after initial list of keys appears
Get "Invalid Cluster Cursor Format" error message
Actual behavior
The "Scan more" functionality posts a keys command to backend:
POST http://localhost:5000/api/databases/{guid}/keys?encoding=buffer
The front end displays the "Incorrect cluster cursor format" error message and does not return more keys matching the specified pattern
Expected behavior
The "Scan more" functionality posts keys command to backend where node names containing hyphens pass the CLUSTER_CURSOR_REGEX test, parseClusterCursor(...) does not throw and api request properly returns more keys from the cursor which are displayed in front end.
Changing the CLUSTER_CURSOR_REGEX to account for hyphens in node names allows for the expected behavior above:
Preconditions
Redis cluster where node host names contain one or more hyphens (ie myredis-0002-001)
Note that AWS Elasticache Redis instances with cluster mode enabled use hyphens in the shard/node names.
Steps to reproduce
Actual behavior
The "Scan more" functionality posts a keys command to backend:
POST http://localhost:5000/api/databases/{guid}/keys?encoding=buffer
The backend returns a 500 error:
The front end displays the "Incorrect cluster cursor format" error message and does not return more keys matching the specified pattern
Expected behavior
The "Scan more" functionality posts keys command to backend where node names containing hyphens pass the
CLUSTER_CURSOR_REGEX
test,parseClusterCursor(...)
does not throw and api request properly returns more keys from the cursor which are displayed in front end.Changing the
CLUSTER_CURSOR_REGEX
to account for hyphens in node names allows for the expected behavior above:const CLUSTER_CURSOR_REGEX = /^(([a-z0-9.-])+:[0-9]+(@-?\d+)(?:\|{2}(?!$)|$))+$/;
The text was updated successfully, but these errors were encountered: