I believe this behavior started around the time the change was made to let
you set

cas.serviceRegistry.json.location


without enabling the JSON service registry in pom.xml.

Personally, I had started using the JSON service registry before they made
that change, so I always had the dependency in there:

    <dependency>
        <groupId>org.apereo.cas</groupId>
        <artifactId>cas-server-support-json-service-registry</artifactId>
        <version>${cas.version}</version>
    </dependency>

and I never saw this behavior, at least up through 5.2.0 (at that point I
switched from JSON to MongoDB).

I always assumed (but never confirmed) that having the dependency in pom.xml
"cured" this problem. YMMV.

--Dave


--

DAVID A. CURRY, CISSP
*DIRECTOR OF INFORMATION SECURITY*
INFORMATION TECHNOLOGY

71 FIFTH AVE., 9TH FL., NEW YORK, NY 10003
+1 212 229-5300 x4728 • [email protected]

[image: The New School]

On Thu, Feb 1, 2018 at 11:05 AM, crdaudt <[email protected]> wrote:

> That is my config.  The two json files still reappear on tomcat startup.
> Even if I keep the files there and modify them, they revert back to the
> default files upon tomcat startup.  This did not happen prior to my update
> to v5.2.2.
>
> On Wednesday, January 31, 2018 at 5:58:46 PM UTC-5, Manfredo Hopp wrote:
>>
>> try this
>>
>> cas.serviceRegistry.initFromJson=false
>> cas.serviceRegistry.json.location=file:/etc/cas/config/services
>>
>> 2018-01-31 19:27 GMT-03:00 crdaudt <[email protected]>:
>>
>>> As of v5.2.2,, it seems that setting cas.serviceRegistry.initFromJson=false
>>> has no effect in avoiding this.  Even if i empty the contents of
>>> webapps/cas/WEB-INF/classes/services/ prior to starting tomcat, the
>>> files HTTPSandIMAPS-10000001.json and Apereo-10000002.json keep reappearing
>>> for me.  Are others experiencing this as well?
>>>
>>> Carl
>>>
>>>
>>>
>>> On Tuesday, May 23, 2017 at 6:45:42 PM UTC-4, RJ wrote:
>>>>
>>>> Guys,
>>>>
>>>> In the latest version 5.0.5 or 5.1.0-RC4, the default
>>>> service,HTTPSandIMAPS-10000001.json, gets auto created during the
>>>> startup. We kept deleting it but it comes back. It wasn't the case in the
>>>> past. How to turn the auto creation off ?
>>>>
>>>> HTTPSandIMAPS-10000001.json
>>>> Apereo-10000002.json
>>>>
>>>> Thanks
>>>>
>>> --
>>> - 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/ap
>>> ereo.org/d/msgid/cas-user/72c7aaba-5652-4653-b1d0-5cd1271660
>>> db%40apereo.org
>>> <https://groups.google.com/a/apereo.org/d/msgid/cas-user/72c7aaba-5652-4653-b1d0-5cd1271660db%40apereo.org?utm_medium=email&utm_source=footer>
>>> .
>>>
>>
>> --
> - 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/48dd7ee0-7481-46ea-8a42-
> b40e8231bf58%40apereo.org
> <https://groups.google.com/a/apereo.org/d/msgid/cas-user/48dd7ee0-7481-46ea-8a42-b40e8231bf58%40apereo.org?utm_medium=email&utm_source=footer>
> .
>

-- 
- 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/CA%2Bd9XANa-tv8OcO%3DagJn5_FteADbY1jeApnZWb4Dx7ujUcKOgA%40mail.gmail.com.

Reply via email to