-
Notifications
You must be signed in to change notification settings - Fork 1.8k
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
Change default fallback for unrecognised REST group text commands #16237
Change default fallback for unrecognised REST group text commands #16237
Conversation
@@ -78,8 +78,8 @@ | |||
public static final String URI_CP_SUBSYSTEM_BASE_URL = "/hazelcast/rest/cp-subsystem"; | |||
public static final String URI_RESET_CP_SUBSYSTEM_URL = URI_CP_SUBSYSTEM_BASE_URL + "/reset"; | |||
public static final String URI_CP_GROUPS_URL = URI_CP_SUBSYSTEM_BASE_URL + "/groups"; | |||
public static final String URI_CP_SESSIONS_SUFFIX = "/sessions"; | |||
public static final String URI_REMOVE_SUFFIX = "/remove"; | |||
public static final String URI_CP_SESSIONS_SUFFIX = URI_CP_SUBSYSTEM_BASE_URL + "/sessions"; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@metanet was this intended or a mistake? If the former, please let me know so I can revert.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
34ca170
to
ce43bb7
Compare
You can also rebase as I see some URIs have been removed in the meantime. |
ce43bb7
to
015953d
Compare
7337afa
to
b85ee4b
Compare
b85ee4b
to
e9d29ab
Compare
CP subsystem was using `CLUSTER_WRITE_ group before but a new `CP` group is added by hazelcast#16237.
Fixes #15957
Added a new REST group too for CP APIs, and fixed some of the CP URIs.
I was also tempted to throw handle the error differently for each protocol, but at this stage of filtering the incoming request, for unified networking, we don't know whether its HTTP or Memcache. Therefore we rely on the previous way of just closing the connection without responding.