Shibboleth SVN ConfigurationResource problem

Tom Zeller tzeller at dragonacea.biz
Wed Jun 11 15:12:42 EDT 2014


On Wed, Jun 11, 2014 at 1:15 PM, Sean Mason <sean.mason at uwaterloo.ca> wrote:
> Hello all,
>
> I am currently looking at implementing the Shibboleth identity provider and I am having some trouble configuring shibboleth to pick up configuration objects from subversion as documented at: https://wiki.shibboleth.net/confluence/display/SHIB2/IdPProdConfigFiles
>
> For example, for the AttributeResolver configuration in service.xml I have something like:
>
> <srv:ConfigurationResource xsi:type="resource:SVNResource"
>         repositoryURL="https://url.to/svn/resource"
>         workingCopyDirectory="/home/idpuser/idp/svnconf"
>         resourceFile="attribute-resolver.xml"
>         username="user"
>         password="password"
>         revision="1450"
> />
>
> I receive "org.springframework.beans.factory.BeanCreationException: SVN resource definition attribute 'revision' contains an invalid number"
>
> If I omit the 'revision' attribute, the configuration successfully fetches the latest revision, so I am quite certain the other attributes are configured correctly.  I have tried other revision numbers known to be valid, and some that weren't to the same result.
>
> I have searched through the archives and haven't stumbled on anyone having a similar problem, so I must be doing something comically simple wrong.  Can anyone show me where I am going astray?

Looks to me like a bug on line 314 of SVNResourceBeanDefinitionParser
[1]. Instead of reading the revision number from the "revision"
attribute, the parser reads the "workingCopyDirectory" attribute.

I suggest filing a bug, not sure what the schedule for a fix will be.

[1] http://svn.shibboleth.net/view/java-shib-common/branches/REL_1/src/main/java/edu/internet2/middleware/shibboleth/common/config/resource/SVNResourceBeanDefinitionParser.java?view=markup


More information about the users mailing list