Hi together, we are currently investigating the same problem.It's because there are non valid XML 1.0 Characters in the metadata (like surrogate pairs).
This block explains it and shows a method how to get rid of them: http://blog.mark-mclaren.info/2007/02/invalid-xml-characters-when-valid-utf8_5873.html If I have time I am going to make a pull request for this issue. Hope this helps Christian Am 23.10.2017 um 22:20 schrieb Evgeni Dimitrov:
The problem with http://localhost:8080/oai/request?verb=GetRecord&metadataPrefix=xoai&identifier=oai:localhost:nls/3not working is related to metadata with non-ASCII characters. The strange thing is that the added log shows that DSpace gets with SolrServer.query() the metadata with the non-ASCII characters distorted. But when Solr is queried in the browser:http://localhost:8080/solr/oai/select?q=item.handle:nls/3 then the non-ASCII characters are correct. I can not figure out why . . . On Thursday, October 19, 2017 at 9:04:39 PM UTC+3, Evgeni Dimitrov wrote: I have a freshly installed DSpace 6.2 with 15 items in it. I have not changed anything in the OAI configuration. Two of the items have READ access for certain groups only. The rest are accessible to everybody. Problem 1. When I run dspace oai import -c I get in dspace.log two exceptions (I suppose for each of the restricted access items): 2017-10-19 17:55:22,650 WARN org.dspace.xoai.util.ItemUtils @ Authorization denied for action READ on BITSTREAM:3d21ebf7-ef3e-4d98-a265-c4a516b1740b by user null org.dspace.authorize.AuthorizeException: Authorization denied for action READ on BITSTREAM:3d21ebf7-ef3e-4d98-a265-c4a516b1740b by user null The whole text of the exception is very long. Problem 2. After that I am trying http://localhost:8080/oai/request?verb=Identify <http://localhost:8080/oai/request?verb=Identify> http://localhost:8080/oai/request?verb=ListSets <http://localhost:8080/oai/request?verb=ListSets> http://localhost:8080/oai/request?verb=ListMetadataFormats <http://localhost:8080/oai/request?verb=ListMetadataFormats> http://localhost:8080/oai/request?verb=ListIdentifiers&metadataPrefix=xoai <http://localhost:8080/oai/request?verb=ListIdentifiers&metadataPrefix=xoai> and it all works. But for http://localhost:8080/oai/request?verb=GetRecord&identifier=oai:localhost:nls/3&metadataPrefix=xoai <http://localhost:8080/oai/request?verb=GetRecord&identifier=oai:localhost:nls/3&metadataPrefix=xoai> (nls/3 is an item accessible to everybody) I get in the browser java.io.IOException: com.lyncode.xoai.dataprovider.exceptions.WritingXmlException: Error trying to output '' org.dspace.xoai.services.impl.cache.DSpaceXOAICacheService.store(DSpaceXOAICacheService.java:113) The whole text of the exception is very long. My question is - am I missing something in the configuration or is this a known problem with DSpace 6.2? <http://www.avg.com/email-signature?utm_medium=email&utm_source=link&utm_campaign=sig-email&utm_content=webmail> Virus-free. www.avg.com <http://www.avg.com/email-signature?utm_medium=email&utm_source=link&utm_campaign=sig-email&utm_content=webmail> --You received this message because you are subscribed to the Google Groups "DSpace Technical Support" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected] <mailto:[email protected]>. To post to this group, send email to [email protected] <mailto:[email protected]>.Visit this group at https://groups.google.com/group/dspace-tech. For more options, visit https://groups.google.com/d/optout.
-- You received this message because you are subscribed to the Google Groups "DSpace Technical Support" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. Visit this group at https://groups.google.com/group/dspace-tech. For more options, visit https://groups.google.com/d/optout.
smime.p7s
Description: S/MIME Cryptographic Signature
