jinmeiliao commented on a change in pull request #6835:
URL: https://github.com/apache/geode/pull/6835#discussion_r703917628
##########
File path:
geode-core/src/main/java/org/apache/geode/internal/cache/tier/sockets/CacheClientProxy.java
##########
@@ -1537,12 +1531,18 @@ protected void deliverMessage(Conflatable conflatable) {
_statistics.incMessagesReceived();
- // post process
- if (securityService.needPostProcess()) {
- Object oldValue = clientMessage.getValue();
- Object newValue =
securityService.postProcess(clientMessage.getRegionName(),
- clientMessage.getKeyOfInterest(), oldValue,
clientMessage.valueIsObject());
- clientMessage.setLatestValue(newValue);
+ // post process for single-user mode. We don't do post process for
multi-user mode
+ if (subject != null) {
+ ThreadState state = securityService.bindSubject(subject);
+ if (securityService.needPostProcess()) {
+ Object oldValue = clientMessage.getValue();
+ Object newValue =
securityService.postProcess(clientMessage.getRegionName(),
+ clientMessage.getKeyOfInterest(), oldValue,
clientMessage.valueIsObject());
+ clientMessage.setLatestValue(newValue);
+ }
+ if (state != null) {
+ state.clear();
+ }
Review comment:
done
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]