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
Client authors please update with your progress. If you open issues in your own repositories as a result of this request, please link them to this one by pasting the issue URL in a comment or main issue description.
The text was updated successfully, but these errors were encountered:
this is java/.net validation. These clients limit subjects on management and subscribe to printable characters. I can remove the printable restriction if required, it would be backward compatible.
String[] segments = subject.split("\\.");
for (int x = 0; x < segments.length; x++) {
String segment = segments[x];
if (segment.equals(">")) {
if (cantEndWithGt || x != segments.length - 1) { // if it can end with gt, gt must be last segment
throw new IllegalArgumentException(label + " cannot contain '>'");
}
}
else if (!segment.equals("*") && notPrintable(segment)) {
throw new IllegalArgumentException(label + " must be printable characters only.");
}
}
Overview
Some JetStream API uses values passed by the user as part of the subject.
Those values should be validated to:
\r\n
or\t
.
Examples of affected fields:
name
anddurable
when managing consumername
of Stream when managing StreamMore to be added.
we are not yet decided on validating
publish
hot paths subjects, as we need to perform some benchmarksThe behavior is documented in ADR-X.
Clients and Tools
Other Tasks
Implemented
Client authors please update with your progress. If you open issues in your own repositories as a result of this request, please link them to this one by pasting the issue URL in a comment or main issue description.
The text was updated successfully, but these errors were encountered: