EPrints Technical Mailing List Archive

Message: #09473


< Previous (by date) | Next (by date) > | < Previous (in thread) | Next (in thread) > | Messages - Most Recent First | Threads - Most Recent First

Re: [EP-tech] OAI2 can not display List Records because XML Parsing Error: duplicate attribute


Hi,

I observed this recently and wrote a patch (after 3.4.5 was released):

https://github.com/eprints/eprints3.4/commit/87324eca63c8c5f048beda90e40114b67d212c88

Although the only change that was made to this since 3.4.4 was released was for this issue:

https://github.com/eprints/eprints3.4/issues/238

Which as far as I can tell does not have anything that could lead to this error.  Also my observation of this error is that it is intermittent, across a number of different OAI-PMH pages.  That is why the fix says only adds this namespace if it has not already been added rather than removing the adding of this namespace completely (i.e. assuming somewhere else will add it).

Regards

David Newman


On 08/11/2023 03:40, Agung Prasetyo W. wrote:
CAUTION: This e-mail originated outside the University of Southampton.
CAUTION: This e-mail originated outside the University of Southampton.
Hi,

I am using eprints 3.4.5 and I encountered an error when accessing oai from our repository. I can't display List Records from OAI. Information appears as follows:

XML Parsing Error: duplicate attribute
Location: http://repo.domain.com/cgi/oai2?verb=ListRecords&metadataPrefix=oai_dc
Line Number 86, Column 287:
       <oai_dc:dc xmlns:oai_dc="http://www.openarchives.org/OAI/2.0/oai_dc/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:dc ="http://purl.org/dc/elements/1.1/" xsi:schemaLocation="http://www.openarchives.org/OAI/2.0/oai_dc/ http://www.openarchives.org/OAI/ 2.0/oai_dc.xsd" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
-------------------------------------------------- -------------------------------------------------- -------------------------------------------------- -------------------------------------------------- -------------------------------------------------- ------------------------------------^

I also included a screenshot of the error.

image.png

image.png
Please help to resolve this error.

Thank you.

Regards,
Agung Prasetyo Wibowo

*** Options: https://wiki.eprints.org/w/Eprints-tech_Mailing_List
*** Archive: https://www.eprints.org/tech.php/
*** EPrints community wiki: https://wiki.eprints.org/