Metadata Aggregator Issue

Krug, Jeff Jeff.Krug at gtri.gatech.edu
Wed Jan 18 20:50:23 GMT 2012


In the calculation of the validityDuration as seen in the example configurations:
p:validityDuration="#{1000 * 60 * 60 * 24 * 5}"

While the field itself is properly declared as a long in the Java class, the calculations seen above are performed as 32-bit signed integers and then cast into longs after the calculation is done. This means that any duration over 24-25 days causes integer overflow and the code throws an exception. I tried casting the above to longs within the configuration files, but that just triggers all sorts of Spring exceptions. I'm not entirely sure where in the code the above calcuation occurs prior to executing the actual Java class that throws the exception, but since the data type needs to be a long, it shouldn't experience 32-bit integer overflow the way it currently does.

I am guessing a bug report should be filed, but I thought I would mention it here prior to putting in a bug report (might be a known problem internal to some Spring processing).

Thanks,
Jeff

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://shibboleth.net/pipermail/dev/attachments/20120118/8080ceec/attachment.html 


More information about the dev mailing list