Alon Bar-Lev has posted comments on this change.

Change subject: aaa: Added usage of AuthRecord.VALID_TO
......................................................................


Patch Set 19:

(1 comment)

http://gerrit.ovirt.org/#/c/26975/19/backend/manager/modules/bll/src/main/java/org/ovirt/engine/core/bll/LoginBaseCommand.java
File 
backend/manager/modules/bll/src/main/java/org/ovirt/engine/core/bll/LoginBaseCommand.java:

Line 121:             int userSessionHardLimit = Config.<Integer> 
getValue(ConfigValues.UserSessionHardLimit);
Line 122:             Date validTo = userSessionHardLimit != 0 ? 
DateUtils.addMinutes(new Date(), userSessionHardLimit) : null;
Line 123:             try {
Line 124:                 Date fromExtension =
Line 125:                         new SimpleDateFormat("yyyy-MM-dd 
HH:mm:ssZ").parse(authRecord.<String> get(AuthRecord.VALID_TO));
> done. I'll catch Exception instead of ParseException.
no... you should not warn in this case, it is perfectly valid for extension not 
to return valid_to, so you must add conditional.
Line 126:                 if (validTo != null) {
Line 127:                     validTo = validTo.compareTo(fromExtension) < 0 ? 
validTo : fromExtension;
Line 128:                 } else {
Line 129:                     validTo = fromExtension;


-- 
To view, visit http://gerrit.ovirt.org/26975
To unsubscribe, visit http://gerrit.ovirt.org/settings

Gerrit-MessageType: comment
Gerrit-Change-Id: I53e4a371c1bae8d2480ddd2af921a560c6fe9a85
Gerrit-PatchSet: 19
Gerrit-Project: ovirt-engine
Gerrit-Branch: master
Gerrit-Owner: Yair Zaslavsky <yzasl...@redhat.com>
Gerrit-Reviewer: Alon Bar-Lev <alo...@redhat.com>
Gerrit-Reviewer: Yair Zaslavsky <yzasl...@redhat.com>
Gerrit-Reviewer: automat...@ovirt.org
Gerrit-Reviewer: oVirt Jenkins CI Server
Gerrit-HasComments: Yes
_______________________________________________
Engine-patches mailing list
Engine-patches@ovirt.org
http://lists.ovirt.org/mailman/listinfo/engine-patches

Reply via email to