[GeoNetwork-devel] [GeoNetwork opensource Developer website] #102: FileNotFoundException in metadata insert

#102: FileNotFoundException in metadata insert
----------------------------------+-----------------------------------------
Reporter: chrisheyne | Owner: geonetwork-devel@lists.sourceforge.net
     Type: defect | Status: new
Priority: major | Milestone:
Component: User interface (web) | Version: v2.4.0 RC1
Keywords: 2.4 metadata insert |
----------------------------------+-----------------------------------------
Metadata insert of text fails with the following error:

{{{
HTTP ERROR: 400
Cannot build ServiceRequest
Cause : C:\Program Files\geonetwork\web\geonetwork\..\..\data\tmp (Access
is denied)
Error : java.io.FileNotFoundException
RequestURI=/geonetwork/srv/en/metadata.insert
Powered by Jetty://
}}}

From geonetwork log:
{{{
2009-05-05 09:22:21,853 INFO [jeeves.request] -

2009-05-05 09:22:21,853 INFO [jeeves.request] - HTML Request (from
10.8.17.130) : /geonetwork/srv/en/metadata.insert
2009-05-05 09:22:21,853 DEBUG [jeeves.request] - Method : POST
2009-05-05 09:22:21,853 DEBUG [jeeves.request] - Content type : multipart/
form-data; boundary=---------------------------265001916915724
2009-05-05 09:22:21,853 DEBUG [jeeves.request] - Accept :
text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8
2009-05-05 09:22:21,853 DEBUG [jeeves.request] - Session id is
1kx8k62fsz3bz
2009-05-05 09:22:21,963 DEBUG [jeeves.request] - Uploading file type:
application/octet-stream size: 0
2009-05-05 09:22:21,963 DEBUG [jeeves.request] - File is called after
simplification
2009-05-05 09:22:21,963 ERROR [jeeves.request] - Cannot build
ServiceRequest
Cause : C:\Program Files\geonetwork\web\geonetwork\..\..\data\tmp (Access
is denied)
Error : java.io.FileNotFoundException
Stack :
java.io.FileNotFoundException: C:\Program
Files\geonetwork\web\geonetwork\..\..\data\tmp (Access is denied)
         at java.io.FileOutputStream.open(Native Method)
         at java.io.FileOutputStream.<init>(Unknown Source)
         at java.io.FileOutputStream.<init>(Unknown Source)
         at
org.apache.commons.fileupload.disk.DiskFileItem.write(DiskFileItem.java:416)
         at
jeeves.server.sources.ServiceRequestFactory.getMultipartParams(ServiceRequestFactory.java:293)
         at
jeeves.server.sources.ServiceRequestFactory.extractParameters(ServiceRequestFactory.java:240)
         at
jeeves.server.sources.ServiceRequestFactory.create(ServiceRequestFactory.java:140)
         at
jeeves.server.sources.http.JeevesServlet.execute(JeevesServlet.java:147)
         at
jeeves.server.sources.http.JeevesServlet.doPost(JeevesServlet.java:99)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:727)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:820)
         at
org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java:502)
         at
org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:363)
         at
org.mortbay.jetty.security.SecurityHandler.handle(SecurityHandler.java:216)
         at
org.mortbay.jetty.servlet.SessionHandler.handle(SessionHandler.java:181)
         at
org.mortbay.jetty.handler.ContextHandler.handle(ContextHandler.java:766)
         at
org.mortbay.jetty.webapp.WebAppContext.handle(WebAppContext.java:417)
         at
org.mortbay.jetty.handler.ContextHandlerCollection.handle(ContextHandlerCollection.java:230)
         at
org.mortbay.jetty.handler.HandlerCollection.handle(HandlerCollection.java:114)
         at
org.mortbay.jetty.handler.HandlerWrapper.handle(HandlerWrapper.java:152)
         at org.mortbay.jetty.Server.handle(Server.java:324)
         at
org.mortbay.jetty.HttpConnection.handleRequest(HttpConnection.java:534)
         at
org.mortbay.jetty.HttpConnection$RequestHandler.content(HttpConnection.java:879)
         at org.mortbay.jetty.HttpParser.parseNext(HttpParser.java:741)
         at
org.mortbay.jetty.HttpParser.parseAvailable(HttpParser.java:213)
         at
org.mortbay.jetty.HttpConnection.handle(HttpConnection.java:403)
         at
org.mortbay.io.nio.SelectChannelEndPoint.run(SelectChannelEndPoint.java:409)
         at
org.mortbay.thread.QueuedThreadPool$PoolThread.run(QueuedThreadPool.java:522)
}}}

Steps to reproduce:
{{{
  1. Login
  2. Select Administration menu
  3. Select Metadata insert
  4. Select copy/paste
  5. Enter metadata
  6. Click Insert
}}}

--
Ticket URL: <http://trac.osgeo.org/geonetwork/ticket/102&gt;
GeoNetwork opensource Developer website <http://trac.osgeo.org/geonetwork&gt;
GeoNetwork opensource is a standards based, Free and Open Source catalog application to manage spatially referenced resources through the web. It provides powerful metadata editing and search functions as well as an embedded interactive web map viewer. This website contains information related to the development of the software.

#102: FileNotFoundException in metadata insert
-----------------------------------+----------------------------------------
  Reporter: chrisheyne | Owner: geonetwork-devel@lists.sourceforge.net
      Type: defect | Status: closed
  Priority: major | Milestone: v2.4.0 RC2
Component: User interface (web) | Version: v2.4.0 RC1
Resolution: fixed | Keywords: 2.4 metadata insert
-----------------------------------+----------------------------------------
Changes (by ticheler):

  * status: new => closed
  * resolution: => fixed
  * milestone: => v2.4.0 RC2

--
Ticket URL: <http://trac.osgeo.org/geonetwork/ticket/102#comment:1&gt;
GeoNetwork opensource Developer website <http://trac.osgeo.org/geonetwork&gt;
GeoNetwork opensource is a standards based, Free and Open Source catalog application to manage spatially referenced resources through the web. It provides powerful metadata editing and search functions as well as an embedded interactive web map viewer. This website contains information related to the development of the software.