Hide Forgot
Help Desk Ticket Reference: https://enterprise.redhat.com/issue-tracker/474923 project_key: JBEPP JBPORTAL-2470 user name containing underscore breaks the UsersActivityStatsService
Link: Added: This issue depends JBPORTAL-2470
There is no need to back port to any portal version. The fix will go to EPP 4.3-CP03 branch only. There's no dependence on the JBPORTAL-2470. And here is the description of this issue. If a user name contains underscore, for example "john_dow", it breaks the UsersActivityStatsService MBean sevice. This is the code from UsersActivityStatsServiceImpl: public void registerActivity(final UserActivity userActivity) { try { Notification notification = new Notification(Integer.toString(userActivity.getType()), this.getServiceName(), userActivity.getTimestamp(), userActivity.getTimestamp(), userActivity.getId() + "_" + userActivity.getSessionId()); .... And here is the code from UserActivity: public UserActivity(Notification notification) { if (notification.getMessage() == null) { throw new IllegalArgumentException("Id (notification message) cannot be null"); } this.id = notification.getMessage().substring(0, notification.getMessage().indexOf("_")); this.sessionId = notification.getMessage().substring(notification.getMessage().indexOf("_")); this.timestamp = notification.getTimeStamp(); this.type = Integer.parseInt(notification.getType()); }
Link: Removed: This issue depends JBPORTAL-2470
issue has been resolved.
Link: Added: This issue related JBEPP-159
This fix has been committed to EPP 4.3 branch that will be picked up by next CP release.