Running CAS 5.1.5,I've added YAML support to the pom.xml, and, I can get it
to load some YAML files fine. When I try to define an attribute release
policy I get an error.
cas_1 | 2017-10-24 15:49:10,309 ERROR
[org.apereo.cas.util.serialization.AbstractJacksonBackedStringSerializer] -
<Cannot read/parse JSON [---
!<org.apereo.cas.services.RegexRegisteredService>
cas_1 | serviceId: "testId"
cas_1 | name: "YAML"
cas_1 | id: 1000
cas_1 | d...] to deserialize into type [interface
org.apereo.cas.services.RegisteredService]. This may be caused in the
absence of a configuration/support module that knows how to interpret the
JSON fragment, specially if the fragment describes a CAS registered service
definition. Internal parsing error is [Can not construct instance of
org.apereo.cas.services.ReturnAllAttributeReleasePolicy: no String-argument
constructor/factory method to deserialize from String value ('')
cas_1 | at [Source: java.io.StringReader@48445b5a; line: 6, column: 25]
(through reference chain:
org.apereo.cas.services.RegexRegisteredService["attributeReleasePolicy"])]>
cas_1 | 2017-10-24 15:49:10,309 WARN
[org.apereo.cas.services.ServiceRegistryConfigWatcher] - <New service
definition could not be loaded from [/etc/cas/services/wmedu-new-001.yml]>
YAML file is a copy/paste from:
https://apereo.github.io/cas/5.1.x/installation/YAML-Service-Management.html
--- !<org.apereo.cas.services.RegexRegisteredService>
serviceId: "testId"
name: "YAML"
id: 1000
description: "description"
attributeReleasePolicy:
!<org.apereo.cas.services.ReturnAllAttributeReleasePolicy>
accessStrategy:
!<org.apereo.cas.services.DefaultRegisteredServiceAccessStrategy>
enabled: true
ssoEnabled: true
Any ideas?
Thanks,
Chris
BTW: Try out my docker CAS 5.x setup at
https://github.com/crpeck/cas-overlay-docker
--
- Website: https://apereo.github.io/cas
- Gitter Chatroom: https://gitter.im/apereo/cas
- List Guidelines: https://goo.gl/1VRrw7
- Contributions: https://goo.gl/mh7qDG
---
You received this message because you are subscribed to the Google Groups "CAS
Community" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To view this discussion on the web visit
https://groups.google.com/a/apereo.org/d/msgid/cas-user/CAFZ1tgY4GnwHJoikGbkr1UHWcSvf-RRCSEf1uVU32SAMydAngA%40mail.gmail.com.