Re: [Fedora-commons-users] Fedora-commons-users Digest, Vol 11, Issue 26

1 view
Skip to first unread message

John A Parker

unread,
Jan 30, 2008, 7:11:08 AM1/30/08
to fedora-com...@lists.sourceforge.net
Hi Jeffery.

Could you provide the entire policy file?

Thanks!

John

At 03:35 AM 1/30/2008, you wrote:
>Content-Transfer-Encoding: 7bit
>From: "Jeffery A. Triggs" <tri...@rutgers.edu>
>Precedence: list
>MIME-Version: 1.0 (Apple Message framework v753)
>To: fedora-commons-users <fedora-com...@lists.sourceforge.net>
>Date: Tue, 29 Jan 2008 16:56:02 -0500
>Message-ID: <3865D667-711E-43C3...@rutgers.edu>
>Content-Type: text/plain; charset=US-ASCII; delsp=yes; format=flowed
>Subject: [Fedora-commons-users] problem validating xacml test policy
>Message: 4
>
>We're trying to test one of the sample xacml policies in Fedora 2.2.1
>and cannot get the test file to validate. Does anyone see something
>obvious that we might have missed?
>
>Thanks,
>
>Jeffery
>
>Error:
>validate-policy.sh rutgers-lib-10833.xml
>ERROR [main] (ValidatePolicy.java:123) - couldn't parse repo-wide policy
>org.xml.sax.SAXParseException: cvc-complex-type.2.4.a: Invalid
>content was found starting with element 'ActionAttributeDesignator'.
>One of '{"urn:oasis:names:tc:xacml:1.0:policy":AttributeValue}' is
>expected.
> at
>org.apache.xerces.util.ErrorHandlerWrapper.createSAXParseException
>(Unknown Source)
> at org.apache.xerces.util.ErrorHandlerWrapper.error(Unknown
>Source)
> at org.apache.xerces.impl.XMLErrorReporter.reportError
> (Unknown Source)
> at org.apache.xerces.impl.XMLErrorReporter.reportError
> (Unknown Source)
> at org.apache.xerces.impl.xs.XMLSchemaValidator
> $XSIErrorReporter.reportError(Unknown Source)
> at
>org.apache.xerces.impl.xs.XMLSchemaValidator.reportSchemaError
>(Unknown Source)
> at
>org.apache.xerces.impl.xs.XMLSchemaValidator.handleStartElement
>(Unknown Source)
> at
> org.apache.xerces.impl.xs.XMLSchemaValidator.emptyElement (Unknown Source)
> at
>org.apache.xerces.impl.XMLNSDocumentScannerImpl.scanStartElement
>(Unknown Source)
> at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl
> $FragmentContentDispatcher.dispatch(Unknown Source)
> at
>org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument
>(Unknown Source)
> at org.apache.xerces.parsers.XML11Configuration.parse
> (Unknown Source)
> at org.apache.xerces.parsers.XML11Configuration.parse
> (Unknown Source)
> at org.apache.xerces.parsers.XMLParser.parse(Unknown Source)
> at org.apache.xerces.parsers.DOMParser.parse(Unknown Source)
> at org.apache.xerces.jaxp.DocumentBuilderImpl.parse(Unknown
>Source)
> at javax.xml.parsers.DocumentBuilder.parse (DocumentBuilder.java:161)
> at fedora.server.security.ValidatePolicy.main
> (ValidatePolicy.java:120)
>Validation failed
>
>The code section in question:
> <Resources>
>
><Resource>
>
><ResourceMatch MatchId="urn:oasis:names:tc:xacml:1.0:function:string- equal">
> <AttributeValue
>DataType="http://www.w3.org/2001/XMLSchema#string">DC</AttributeValue>
> <ResourceAttributeDesignator
>AttributeId="urn:fedora:names:fedora:2.1:resource:datastream:id"
>DataType="http://www.w3.org/2001/XMLSchema#string"/>
> </ResourceMatch>
> </Resource>
> </Resources>


Reply all
Reply to author
Forward
0 new messages