We are taking on the effort of getting all services that use CAS into the
Service Registry under the 4.2.2 version. When I try to load those
services that are stored in JSON, into CAS 5.0 they error out for the
obvious reason that the full classpath names have changed from org.jasig.*
to org.apereo.*. There is also an error when deserializing
DefaultPrincipalAttributesRepository since timeUnit was changed from
java.util.concurrent.TimeUnit to just be String in
AbstractPrincipalAttributesRepository. I was able to make it compatible by
adding this in the serializer:
jsonString.replaceAll("jasig","apereo").replace("[\"java.util.concurrent.TimeUnit\",\"HOURS\"]}","\"HOURS\"}")
This obviously only works for cases where the default HOURS unit is
not overwritten, which we don't.
Is there a plan to make the code read entries created in earlier
format? Perhaps include a script that can be run to make convert the
old entries into the new format?
--
You received this message because you are subscribed to the Google Groups "CAS
Developer" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
Visit this group at https://groups.google.com/a/apereo.org/group/cas-dev/.