[JIRA] Closed: (JOST-189) RoleDescriptorImpl isValid check enforces that validUntil date is before now, instead of in the future

Brent Putman (JIRA) noreply at shibboleth.net
Fri Aug 10 18:22:06 EDT 2012


     [ https://issues.shibboleth.net/jira/browse/JOST-189?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Brent Putman closed JOST-189.
-----------------------------

    Resolution: Fixed
      Assignee: Rod Widdowson  (was: Chad La Joie)

Rod already fixed this in r1575.

> RoleDescriptorImpl isValid check enforces that validUntil date is before now, instead of in the future
> ------------------------------------------------------------------------------------------------------
>
>                 Key: JOST-189
>                 URL: https://issues.shibboleth.net/jira/browse/JOST-189
>             Project: OpenSAML 2 - Java
>          Issue Type: Bug
>            Reporter: philvarner at idp.protectnetwork.org
>            Assignee: Rod Widdowson
>
> The relevant code is from RoleDescriptorImpl:
>     public boolean isValid() {
>         if (validUntil != null) {
>             return validUntil.isBeforeNow();
>         } else {
>             return true;
>         }
>     }
> which checks that that the date is before now.
> EntityDescriptorImpl and EntitiesDescriptorImpl have the correct check:
>     public boolean isValid() {
>         if (null == validUntil) {
>             return true;
>         }
>         DateTime now = new DateTime();
>         return now.isBefore(validUntil);
>     }

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira


More information about the commits mailing list