Since when is a container restart required to refresh DS Metadata?

Dan McLaughlin dmclaughlin at tech-consortium.com
Wed Sep 14 20:29:29 BST 2011


I have a very plain configuration using DS 1.1.2 on Tomcat (see
wayfconfig.xml below).  If I change the metadata, the only way I can
get it to immediately update is to bounce the entire container.
Restarting just the Discovery Service web application doesn't even
work.

I do see the following message in the DS logs: ...next refresh will
occur at approximately 2011-09-14T20:45:34.386Z  But I don't
particularly want to wait that long our bounce the container.  There's
got to be a way to tell the DS to check the metadata for changes more
often, I just haven't found it yet.  What be nice is a JMX MBean I
could poke.


<?xml version="1.0"?>
<WayfConfig xmlns="urn:mace:shibboleth:wayf:config:1.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">

	<Default jspFile="wayf.jsp" errorJspFile="wayferror.jsp"
provideList="true" provideListOfList="false" warnOnBadBinding="false"
showUnusableIdPs="false">
		<SearchIgnore>
			<IgnoreText>Institution</IgnoreText>
			<IgnoreText>University</IgnoreText>
			<IgnoreText>State </IgnoreText>
			<IgnoreText>School</IgnoreText>
		</SearchIgnore>
	</Default>

	<MetadataProvider displayName="MyFederation" identifier="myfed"
url="file:///opt/shib-ds/metadata/my-federation-metadata.xml"/>

	<Plugin identifier="CookiePlugin"
type="edu.internet2.middleware.shibboleth.wayf.plugins.provider.SamlCookiePlugin"
alwaysFollow="TRUE" deleteCookie="FALSE" cacheExpiration="604800"/>

	<Plugin identifier="DeleteCookiePlugin"
type="edu.internet2.middleware.shibboleth.wayf.plugins.provider.SamlCookiePlugin"
alwaysFollow="FALSE" deleteCookie="TRUE" cacheExpiration="604800"/>

	<DiscoveryServiceHandler location=".+/WAYF" default="true">
		<PluginInstance identifier="CookiePlugin"/>
	</DiscoveryServiceHandler>

	<DiscoveryServiceHandler location=".+/ClearCache.wayf">
		<PluginInstance identifier="DeleteCookiePlugin"/>
	</DiscoveryServiceHandler>

	<DiscoveryServiceHandler location=".+/js.wayf" provideList="true"
provideListOfList="false" default="false" jspFile="/javascript.jsp">
		<Federation identifier="txdot"/>
		<PluginInstance identifier="CookiePlugin"/>
	</DiscoveryServiceHandler>
</WayfConfig>


--

Thanks,

Dan McLaughlin




On Wed, Sep 14, 2011 at 1:07 PM, Peter Schober
<peter.schober at univie.ac.at> wrote:
> * Dan McLaughlin <dmclaughlin at tech-consortium.com> [2011-09-14 19:46]:
>> I don't remember it being this way in the past, but now I have to
>> restart Tomcat in order to get the Discovery Service to pick up
>> Metadata changes.  Stopping and starting just the DS web app doesn't
>> reload the metadata either.
>
> I'm not using the Shib DS myself but any software that requires a full
> restart to pick up metadata changes is either misconfigured or broken,
> IMO. So I guess you'll need to be more specific in your problem
> statement.
> -peter
> --
> To unsubscribe from this list send an email to users-unsubscribe at shibboleth.net
>


More information about the users mailing list