Hello, everyone,

While tinkering with the OAI harvester, I may have stumbled across a bug
 in the PROAI component.  To trigger updates in the OAI, I was making
changes to the DC datastream.  It seems as though some name spaces are
being declared more than once, and the changes are being accepted.  I
only noticed this because I have my log level set to DEBUG on the proai
side of things.

In the editor, my datastream was submitted as:

<oai_dc:dc xmlns:dc="http://purl.org/dc/elements/1.1/";
xmlns:oai_dc="http://www.openarchives.org/OAI/2.0/oai_dc/";
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";
xsi:schemaLocation="http://www.openarchives.org/OAI/2.0/oai_dc/
http://www.openarchives.org/OAI/2.0/oai_dc.xsd";>

 ... data

</oai_dc:dc>

But PROAI reported it as this:  (and generated a SAX Exception in the
process)

<oai_dc:dc xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";
xsi:schemaLocation="http://www.openarchives.org/OAI/2.0/oai_dc/
http://www.openarchives.org/OAI/2.0/oai_dc.xsd";
xmlns:dc="http://purl.org/dc/elements/1.1/";
xmlns:oai_dc="http://www.openarchives.org/OAI/2.0/oai_dc/";
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";
xsi:schemaLocation="http://www.openarchives.org/OAI/2.0/oai_dc/
http://www.openarchives.org/OAI/2.0/oai_dc.xsd";>

 .... data

</oai_dc:dc>

 Notice that in the submitted version, the xmlns:xsi namespace is
declared twice, as is the xsi schemeLocation.

If I access the object's DC stream directly, via the following URL:

http://etc.hil.unb.ca:8080/fedora/get/test:oaiprovider-object-item-c.d_a.n/DC

You can see that the name spaces are not declared twice.

Cheers,

Jason
-- 
Jason Nugent
Systems Programmer/Database Developer
Electronic Text Centre
University of New Brunswick
[email protected]
(506) 447 3177

------------------------------------------------------------------------------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day 
trial. Simplify your report design, integration and deployment - and focus on 
what you do best, core application coding. Discover what's new with 
Crystal Reports now.  http://p.sf.net/sfu/bobj-july
_______________________________________________
Fedora-commons-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/fedora-commons-users

Reply via email to