-
Notifications
You must be signed in to change notification settings - Fork 504
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
fix auth: property of int or date type can't be filtered #1004
Conversation
Change-Id: I794165b89b9d21f31938f09daa2041881ba2eb8d
Change-Id: I13678f1a28886c9592f8ea2ae51f953a5b4d6774
Change-Id: Id07a2f24b4625402250bd5e137f3db7eef3a8888
Codecov Report
@@ Coverage Diff @@
## master #1004 +/- ##
============================================
- Coverage 69.35% 69.16% -0.19%
- Complexity 5275 5361 +86
============================================
Files 325 328 +3
Lines 25870 26215 +345
Branches 3647 3731 +84
============================================
+ Hits 17941 18131 +190
- Misses 6207 6325 +118
- Partials 1722 1759 +37
Continue to review full report at Codecov.
|
support construct blob from byte[],base64-string,hex-string,byte-list Change-Id: I47357c537dcdacae2913139fd55f3794f57f322a
Change-Id: I62bb87ac346813984c23038f27e24e5566bb3cac
Change-Id: Ic13c7a4bc8ebd591f3f8e5657fcc3cb1708706f9
Change-Id: Ice21c4493347d8ca02cce2d184648ef3824484e3
@@ -48,7 +48,7 @@ | |||
public static final String KEY_PASSWORD = | |||
CredentialGraphTokens.PROPERTY_PASSWORD; | |||
public static final String KEY_ROLE = "role"; | |||
public static final String KEY_CLIENT = "client"; | |||
public static final String KEY_CLIENT = "address"; |
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.
rename to KEY_ADDRESS
public static boolean isWebSocket(final HttpMessage msg) { | ||
final String connectionHeader = msg.headers().get(CONNECTION); | ||
final String upgradeHeader = msg.headers().get(UPGRADE); | ||
return "Upgrade".equalsIgnoreCase(connectionHeader) || |
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.
recheck to make sure it's expected
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.
sure
public <V> Object serialValue(V value) { | ||
V validValue = this.validValue(value); | ||
E.checkArgument(validValue != null, | ||
"Invalid property value '%s' for key '%s'", | ||
value, this.name()); | ||
E.checkArgument(this.cardinality == Cardinality.SINGLE, |
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.
this. cardinality.single()
Collection<T> validValues; | ||
if (!(value instanceof Collection)) { | ||
if (this.cardinality == Cardinality.SINGLE) { |
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.
this.cardinality.single()
Change-Id: I9227897f9ddb00cb5cf0547e43fc8d06c150f191
Change-Id: I794165b89b9d21f31938f09daa2041881ba2eb8d