Hi Dspace community:

We are using a SWORD v1 server to receive items from a .NET web application.
When the SWORD client application sends a file whose name includes 
diacritics, it receives a 500 error as response.

This is part of dspace log file:

2012-06-19 09:42:39,599 ERROR org.purl.sword.server.DepositServlet @ 
X_NO_OP value is false
2012-06-19 09:42:39,669 INFO  org.dspace.sword.SWORDAuthenticator @ 
anonymous:session_id=0:ip_addr=172.20.122.31:sword_authenticate:[email protected],[email protected]
2012-06-19 09:42:39,669 INFO  
org.dspace.authenticate.PasswordAuthentication @ 
anonymous:session_id=0:ip_addr=172.20.122.31:authenticate:attempting 
password auth of [email protected]
2012-06-19 09:42:39,708 INFO  
org.dspace.authenticate.PasswordAuthentication @ 
[email protected]:session_id=0:ip_addr=172.20.122.31:authenticate:type=PasswordAuthentication
2012-06-19 09:42:39,712 INFO  org.dspace.sword.DSpaceSWORDServer @ 
[email protected]:session_id=0:ip_addr=172.20.122.31:sword_deposit_request:[email protected],[email protected]
2012-06-19 09:42:39,713 INFO  org.dspace.sword.SWORDService @ 
[2012-06-19 09:42:39.713] Initialising verbose deposit;
2012-06-19 09:42:39,750 INFO  org.dspace.sword.SWORDService @ 
[2012-06-19 09:42:39.750] Performing deposit using location: 
http://dspace.domain.com/sword/deposit/10221/68;
2012-06-19 09:42:39,750 INFO  org.dspace.sword.SWORDService @ 
[2012-06-19 09:42:39.750] Location resolves to collection with handle: 
10221/68 and name: Desarrollo Económico;
2012-06-19 09:42:39,898 INFO  org.dspace.sword.SWORDService @ 
[2012-06-19 09:42:39.898] User is authorised to submit to collection;
2012-06-19 09:42:39,898 INFO  org.dspace.sword.SWORDService @ 
[2012-06-19 09:42:39.898] Authenticated user: [email protected];
2012-06-19 09:42:39,898 INFO  org.dspace.sword.SWORDService @ 
[2012-06-19 09:42:39.898] Depositing on behalf of: [email protected];
2012-06-19 09:42:39,898 INFO  org.dspace.sword.SWORDService @ 
[2012-06-19 09:42:39.898] Initialising depositor for an Item in a 
Collection;
2012-06-19 09:42:39,898 INFO  org.dspace.sword.SWORDService @ 
[2012-06-19 09:42:39.898] Loaded ingester: 
org.dspace.sword.SWORDMETSIngester;
2012-06-19 09:42:39,898 INFO  org.dspace.sword.SWORDService @ 
[2012-06-19 09:42:39.898] Using package manifest format: METS;
2012-06-19 09:42:39,898 INFO  org.dspace.sword.SWORDService @ 
[2012-06-19 09:42:39.898] Loaded package ingester: 
org.dspace.content.packager.DSpaceMETSIngester;

2012-06-19 09:42:39,899 INFO  
org.dspace.content.packager.AbstractMETSIngester @ 
[email protected]:session_id=0:ip_addr=172.20.122.31:package_parse:Parsing 
package for ingest, file=SWORD-172.20.122.31-3
2012-06-19 09:42:40,807 INFO  org.dspace.content.Item @ 
[email protected]:session_id=0:ip_addr=172.20.122.31:update_item:item_id=18531
2012-06-19 09:42:40,953 INFO  org.dspace.content.Item @ 
[email protected]:session_id=0:ip_addr=172.20.122.31:create_item:item_id=18531
2012-06-19 09:42:41,279 INFO  org.dspace.content.Item @ 
[email protected]:session_id=0:ip_addr=172.20.122.31:update_item:item_id=18531
2012-06-19 09:42:41,292 INFO  org.dspace.content.WorkspaceItem @ 
[email protected]:session_id=0:ip_addr=172.20.122.31:create_workspace_item:workspace_item_id=-1item_id=18531collection_id=45
2012-06-19 09:42:41,511 ERROR org.dspace.sword.SWORDMETSIngester @ 
caught exception:
java.lang.NullPointerException
         at java.util.zip.ZipFile.getInputStream(ZipFile.java:193)
         at 
org.dspace.content.packager.AbstractMETSIngester.getFileInputStream(AbstractMETSIngester.java:1449)
         at 
org.dspace.content.packager.AbstractMETSIngester.addBitstreams(AbstractMETSIngester.java:774)
         at 
org.dspace.content.packager.AbstractMETSIngester.ingestObject(AbstractMETSIngester.java:500)
         at 
org.dspace.content.packager.AbstractMETSIngester.ingest(AbstractMETSIngester.java:234)
         at 
org.dspace.sword.SWORDMETSIngester.ingest(SWORDMETSIngester.java:93)
         at 
org.dspace.sword.CollectionDepositor.doDeposit(CollectionDepositor.java:112)
         at org.dspace.sword.DepositManager.deposit(DepositManager.java:148)
         at 
org.dspace.sword.DSpaceSWORDServer.doDeposit(DSpaceSWORDServer.java:120)
         at 
org.purl.sword.server.DepositServlet.doPost(DepositServlet.java:299)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:710)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
         at 
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:269)
         at 
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:188)
         at 
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213)
         at 
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:174)
         at 
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)
         at 
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:117)
         at 
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:108)
         at 
org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:174)
         at 
org.apache.jk.server.JkCoyoteHandler.invoke(JkCoyoteHandler.java:200)
         at 
org.apache.jk.common.HandlerRequest.invoke(HandlerRequest.java:283)
         at 
org.apache.jk.common.ChannelSocket.invoke(ChannelSocket.java:773)
         at 
org.apache.jk.common.ChannelSocket.processConnection(ChannelSocket.java:703)
         at 
org.apache.jk.common.ChannelSocket$SocketConnection.runIt(ChannelSocket.java:895)
         at 
org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:689)
         at java.lang.Thread.run(Thread.java:662)
2012-06-19 09:42:41,512 ERROR 
org.apache.catalina.core.ContainerBase.[Catalina].[localhost].[/sword].[deposit]
 
@ Servlet.service() for servlet deposit threw exception
java.lang.NullPointerException
         at java.util.zip.ZipFile.getInputStream(ZipFile.java:193)
         at 
org.dspace.content.packager.AbstractMETSIngester.getFileInputStream(AbstractMETSIngester.java:1449)
         at 
org.dspace.content.packager.AbstractMETSIngester.addBitstreams(AbstractMETSIngester.java:774)
         at 
org.dspace.content.packager.AbstractMETSIngester.ingestObject(AbstractMETSIngester.java:500)
         at 
org.dspace.content.packager.AbstractMETSIngester.ingest(AbstractMETSIngester.java:234)
         at 
org.dspace.sword.SWORDMETSIngester.ingest(SWORDMETSIngester.java:93)
         at 
org.dspace.sword.CollectionDepositor.doDeposit(CollectionDepositor.java:112)
         at org.dspace.sword.DepositManager.deposit(DepositManager.java:148)
         at 
org.dspace.sword.DSpaceSWORDServer.doDeposit(DSpaceSWORDServer.java:120)
         at 
org.purl.sword.server.DepositServlet.doPost(DepositServlet.java:299)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:710)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
         at 
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:269)
         at 
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:188)
         at 
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213)
         at 
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:174)
         at 
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)
         at 
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:117)
         at 
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:108)
         at 
org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:174)
         at 
org.apache.jk.server.JkCoyoteHandler.invoke(JkCoyoteHandler.java:200)
         at 
org.apache.jk.common.HandlerRequest.invoke(HandlerRequest.java:283)
         at 
org.apache.jk.common.ChannelSocket.invoke(ChannelSocket.java:773)
         at 
org.apache.jk.common.ChannelSocket.processConnection(ChannelSocket.java:703)
         at 
org.apache.jk.common.ChannelSocket$SocketConnection.runIt(ChannelSocket.java:895)
         at 
org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:689)
         at java.lang.Thread.run(Thread.java:662)

The first error was solved simply excluding the "X_NO_OP" header.
The second error is a different story. After a while, we discovered that 
there were no problem sending a file without diacritics.
Unfortunately, diacritics are important in Spanish language and we would 
like to use them.

Any suggestion? Thanks in advance!!

-- 
Álvaro Sandoval Pizarro

BCN, Biblioteca del Congreso Nacional de Chile
Ingeniería y Desarrollo
Fono (5632) 226 3981

http://www.bcn.cl/


------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
DSpace-tech mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/dspace-tech

Reply via email to