[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[upki-fed:00751] Re: Cannot load attribute-filter.xml provided by Gakunin



西村さん

R&R の embedded DS の件について聴講していて思い出したのですが,下記の件は,
本学だけの問題なのでしょうか? 本学も,そろそろ学認からダウンロードしたメ
タデータを使う体制に移行したいと思っていますが,確認をお願いします.

>> On Fri, 14 Dec 2012 14:26:57 +0900
>> xxxxxxxx@xxxxxx (TSUCHIYA Masatoshi) said as follows:

>>> 15:11:33.889 - ERROR
>>> [edu.internet2.middleware.shibboleth.common.config.BaseService:188]
>>> - Configuration was not loaded for shibboleth.AttributeFilterEngine
>>> service, error creating components.  The root cause of this error
>>> was: org.xml.sax.SAXParseException: cvc-type.2: The type definition
>>> cannot be abstract for element afp:PolicyRequirementRule.

>>Googleで「"The type definition cannot be abstract for element"
>>Shibboleth」を検索してみると、下記のページが見つかりました。下記ページ
>>では要素名は異なりますが、「xsi:type」の時に同じエラーメッセージが表示
>>されていました。

>> https://bugs.internet2.edu/jira/si/jira.issueviews:issue-html/SIDP-122/SIDP-122.html

>>xsi:typeを持っていないafp:PolicyRequirementRuleに存在していないでしょうか?

>ビンゴです.どうも有難うございます.

> <afp:AttributeFilterPolicy id="PolicyFor_example-sp">
> <afp:PolicyRequirementRule value="https://example.net/shibboleth-sp" type="basic:AttributeRequesterString"/>
> <afp:AttributeRule attributeID="eduPersonPrincipalName">
> <afp:PermitValueRule type="ANY"/>
> </afp:AttributeRule>
> </afp:AttributeFilterPolicy>

>となっていたものを,

> <afp:AttributeFilterPolicy id="PolicyFor_example-sp">
> <afp:PolicyRequirementRule value="https://example.net/shibboleth-sp" xsi:type="basic:AttributeRequesterString"/>
> <afp:AttributeRule attributeID="eduPersonPrincipalName">
> <afp:PermitValueRule xsi:type="basic:ANY"/>
> </afp:AttributeRule>
> </afp:AttributeFilterPolicy>

>というように,

> s/ type=/ xsi:type=/
> s/"ANY"/"basic:ANY"/

>と置換してやると無事に読み込めるようになりました.
>ちなみに,s/"ANY"/"basic:ANY"/ をやらないままだと,

>14:18:31.770 - ERROR [edu.internet2.middleware.shibboleth.common.config.BaseService:188] - Configuration was not loaded for shibboleth.AttributeFilterEngine service, error creating components.  The root cause of this error was: org.xml.sax.SAXParseException: cvc-elt.4.2: Cannot resolve 'ANY' to a type definition for element 'afp:PermitValueRule'.

>というエラーになります.

>という次第で,これは学認申請システムによる attribute-filter.xml 生成プロ
>グラムのバグではないかと思います.改修の検討をよろしくお願いします.

-- 
土屋 雅稔 ( TSUCHIYA Masatoshi )