Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ISPN-14151 Small fixes for auth handler #10335

Merged
merged 1 commit into from Sep 26, 2022

Conversation

jabolina
Copy link
Member

https://issues.redhat.com/browse/ISPN-14151

Just some small fixes for the auth handler error message, RESET can restore to an unauthenticated state, and a fix for when we get a key that does not exist.

@@ -70,7 +70,7 @@ public RespRequestHandler handleRequest(ChannelHandlerContext ctx, String type,
buf.writeByte('\r').writeByte('\n');
ctx.writeAndFlush(buf);
} else {
ctx.writeAndFlush(RespRequestHandler.stringToByteBuf("_\r\n", ctx.alloc()));
ctx.writeAndFlush(RespRequestHandler.stringToByteBuf("$-1\r\n", ctx.alloc()));
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We have from here we must return nil when a key is not found. And from here that the nil bulk string is "$-1\r\n".

@jabolina
Copy link
Member Author

jabolina commented Sep 21, 2022

Extending the null string to MGET as well.
Done.

@tristantarrant
Copy link
Member

Merged, thanks

@jabolina jabolina deleted the ISPN-14151 branch September 26, 2022 13:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants