[GeoNetwork-users] XML file upload via copy/paste throws a FileNotFound Exception (Access Denied) (V2.4)

Hi

I have installed GeoNetwork Version 2.4 on a Windows Server. When I try to
upload an XML record via Copy/Paste in the web form, the system throws an
exception:
HTTP ERROR: 400
Cannot build ServiceRequest
Cause : D:\geonetwork\web\geonetwork\..\..\data\tmp (Access is denied)
Error : java.io.FileNotFoundException

I have checked the path, it exists on the server and I have changed the path
in config.xml of geonetwork (in D:\geonetwork\web\geonetwork\WEB-INF). I
have tried absolute and relative paths, nothing worked.

I am running it under Tomcat, Tomcat is running under the SYSTEM account (as
its only a test installation), so there cant be a permission problem really.
I have tried to do the same with Jetty, and I get the same error.

Does anybody have the same problem than me, or is it the problem of my
environment?

cya, Nicole
--
View this message in context: http://n2.nabble.com/XML-file-upload-via-copy-paste-throws-a-FileNotFound-Exception-(Access-Denied)-(V2.4)-tp3430586p3430586.html
Sent from the GeoNetwork users mailing list archive at Nabble.com.

Hi Nicole;

I have the same issue with the same configuration. I presume it is
something related to permissions of directories etc.

o.e.

-----Original Message-----
From: Nicole Jung [mailto:nico@anonymised.com]
Sent: Wednesday, August 12, 2009 2:09 PM
To: geonetwork-users@lists.sourceforge.net
Subject: [GeoNetwork-users] XML file upload via copy/paste throws a
FileNotFound Exception (Access Denied) (V2.4)

Hi

I have installed GeoNetwork Version 2.4 on a Windows Server. When I try
to upload an XML record via Copy/Paste in the web form, the system
throws an
exception:
HTTP ERROR: 400
Cannot build ServiceRequest
Cause : D:\geonetwork\web\geonetwork\..\..\data\tmp (Access is denied)
Error : java.io.FileNotFoundException

I have checked the path, it exists on the server and I have changed the
path in config.xml of geonetwork (in
D:\geonetwork\web\geonetwork\WEB-INF). I have tried absolute and
relative paths, nothing worked.

I am running it under Tomcat, Tomcat is running under the SYSTEM account
(as its only a test installation), so there cant be a permission problem
really.
I have tried to do the same with Jetty, and I get the same error.

Does anybody have the same problem than me, or is it the problem of my
environment?

cya, Nicole
--
View this message in context:
http://n2.nabble.com/XML-file-upload-via-copy-paste-throws-a-FileNotFoun
d-Exception-%28Access-Denied%29-%28V2.4%29-tp3430586p3430586.html
Sent from the GeoNetwork users mailing list archive at Nabble.com.

------------------------------------------------------------------------
------
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
_______________________________________________
GeoNetwork-users mailing list
GeoNetwork-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geonetwork-users
GeoNetwork OpenSource is maintained at
http://sourceforge.net/projects/geonetwork

______________________________________________________________________
This email has been scanned by the MessageLabs Email Security System.
For more information please visit http://www.messagelabs.com/email
______________________________________________________________________

**********************************************************************
This email and any files transmitted with it are confidential and
intended solely for the use of the individual or entity to whom they
are addressed. If you have received this email in error please notify
the EPA postmaster - postmaster@anonymised.com
The opinions contained within are personal to the sender and
do not necessarily reflect the policy of the Environmental Protection
Agency.

**********************************************************************

______________________________________________________________________
This email has been scanned by the MessageLabs Email Security System.
For more information please visit http://www.messagelabs.com/email
______________________________________________________________________

Ozan, Nicole, lists,

I get the same issue with GN2.4.1. I am using Windows XPSP3 with Jetty and GN installed
from windows installer.
Doesn't seem to be related to file permissions.
Also get error with single file insert.

I will raise this as a ticket on the GN developer trac site at http://trac.osgeo.org/geonetwork/wiki

Andrew

----- Original Message ----- From: "Ozan Emem" <O.Emem@anonymised.com>
To: <GeoNetwork-users@lists.sourceforge.net>
Sent: Thursday, August 13, 2009 7:06 PM
Subject: Re: [GeoNetwork-users] XML file upload via copy/paste throws a FileNotFound Exception (Access Denied) (V2.4)

Hi Nicole;

I have the same issue with the same configuration. I presume it is
something related to permissions of directories etc.

o.e.

-----Original Message-----
From: Nicole Jung [mailto:nico@anonymised.com] Sent: Wednesday, August 12, 2009 2:09 PM
To: geonetwork-users@lists.sourceforge.net
Subject: [GeoNetwork-users] XML file upload via copy/paste throws a
FileNotFound Exception (Access Denied) (V2.4)

Hi

I have installed GeoNetwork Version 2.4 on a Windows Server. When I try
to upload an XML record via Copy/Paste in the web form, the system
throws an
exception: HTTP ERROR: 400
Cannot build ServiceRequest
Cause : D:\geonetwork\web\geonetwork\..\..\data\tmp (Access is denied)
Error : java.io.FileNotFoundException

I have checked the path, it exists on the server and I have changed the
path in config.xml of geonetwork (in
D:\geonetwork\web\geonetwork\WEB-INF). I have tried absolute and
relative paths, nothing worked.

I am running it under Tomcat, Tomcat is running under the SYSTEM account
(as its only a test installation), so there cant be a permission problem
really. I have tried to do the same with Jetty, and I get the same error.

Does anybody have the same problem than me, or is it the problem of my
environment?

cya, Nicole
--
View this message in context:
http://n2.nabble.com/XML-file-upload-via-copy-paste-throws-a-FileNotFoun
d-Exception-%28Access-Denied%29-%28V2.4%29-tp3430586p3430586.html
Sent from the GeoNetwork users mailing list archive at Nabble.com.

------------------------------------------------------------------------
------
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
_______________________________________________
GeoNetwork-users mailing list
GeoNetwork-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geonetwork-users
GeoNetwork OpenSource is maintained at
http://sourceforge.net/projects/geonetwork

______________________________________________________________________
This email has been scanned by the MessageLabs Email Security System.
For more information please visit http://www.messagelabs.com/email
______________________________________________________________________

**********************************************************************
This email and any files transmitted with it are confidential and
intended solely for the use of the individual or entity to whom they
are addressed. If you have received this email in error please notify
the EPA postmaster - postmaster@anonymised.com
The opinions contained within are personal to the sender and
do not necessarily reflect the policy of the Environmental Protection
Agency.

**********************************************************************

______________________________________________________________________
This email has been scanned by the MessageLabs Email Security System.
For more information please visit http://www.messagelabs.com/email ______________________________________________________________________

------------------------------------------------------------------------------
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
_______________________________________________
GeoNetwork-users mailing list
GeoNetwork-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geonetwork-users
GeoNetwork OpenSource is maintained at http://sourceforge.net/projects/geonetwork

Hi Andrew et al,

I think this error was IE specific - forms in IE (unlike FF) need an additional attribute (.encoding) to be set to the same value as the .enctype attribute. The error message was caused by the fact that without the additional encoding attribute, GeoNetwork thought you were uploading a file.

The fix (svn rev 5128) is to add the encoding attribute to the xmlinsert form in the js part of web/geonetwork/xsl/metadata-insert-form.xsl as follows:

Index: web/geonetwork/xsl/metadata-insert-form.xsl ===================================================================
@@ -58,6 +58,7 @@
                     $('gn.fileType').style.display='none';
                     $('gn.uuidAction').style.display='none';
                     document.xmlinsert.enctype="application/x-www-form-urlencoded";

+ document.xmlinsert.encoding="application/x-www-form-urlencoded";

                     document.xmlinsert.action=Env.locService+"/metadata.insert.paste";

                     document.xmlinsert.target='_self'; } else { @@ -66,6 +67,7 @@
                     $('gn.fileType').style.display='';
                     $('gn.uuidAction').style.display='';
                     document.xmlinsert.enctype="multipart/form-data"; + document.xmlinsert.encoding="multipart/form-data";

                     document.xmlinsert.action=Env.locService+"/mef.import";
                     document.xmlinsert.target='upFrame';
                 }

Cheers,
Simon

awalsh wrote:

Ozan, Nicole, lists,

I get the same issue with GN2.4.1. I am using Windows XPSP3 with Jetty and GN installed
from windows installer.
Doesn't seem to be related to file permissions.
Also get error with single file insert.

I will raise this as a ticket on the GN developer trac site at GeoNetwork opensource Developer website

Andrew

----- Original Message ----- From: "Ozan Emem" <O.Emem@anonymised.com>
To: <GeoNetwork-users@lists.sourceforge.net>
Sent: Thursday, August 13, 2009 7:06 PM
Subject: Re: [GeoNetwork-users] XML file upload via copy/paste throws a FileNotFound Exception (Access Denied) (V2.4)

Hi Nicole;

I have the same issue with the same configuration. I presume it is
something related to permissions of directories etc.

o.e.

-----Original Message-----
From: Nicole Jung [mailto:nico@anonymised.com] Sent: Wednesday, August 12, 2009 2:09 PM
To: geonetwork-users@lists.sourceforge.net
Subject: [GeoNetwork-users] XML file upload via copy/paste throws a
FileNotFound Exception (Access Denied) (V2.4)

Hi

I have installed GeoNetwork Version 2.4 on a Windows Server. When I try
to upload an XML record via Copy/Paste in the web form, the system
throws an
exception: HTTP ERROR: 400
Cannot build ServiceRequest
Cause : D:\geonetwork\web\geonetwork\..\..\data\tmp (Access is denied)
Error : java.io.FileNotFoundException

I have checked the path, it exists on the server and I have changed the
path in config.xml of geonetwork (in
D:\geonetwork\web\geonetwork\WEB-INF). I have tried absolute and
relative paths, nothing worked.

I am running it under Tomcat, Tomcat is running under the SYSTEM account
(as its only a test installation), so there cant be a permission problem
really. I have tried to do the same with Jetty, and I get the same error.

Does anybody have the same problem than me, or is it the problem of my
environment?

cya, Nicole
--
View this message in context:
http://n2.nabble.com/XML-file-upload-via-copy-paste-throws-a-FileNotFoun
d-Exception-%28Access-Denied%29-%28V2.4%29-tp3430586p3430586.html
Sent from the GeoNetwork users mailing list archive at Nabble.com.

------------------------------------------------------------------------
------
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. Best Open Source Mac Front-Ends 2024
_______________________________________________
GeoNetwork-users mailing list
GeoNetwork-users@lists.sourceforge.net
geonetwork-users List Signup and Options
GeoNetwork OpenSource is maintained at
GeoNetwork - Geographic Metadata Catalog download | SourceForge.net

______________________________________________________________________
This email has been scanned by the MessageLabs Email Security System.
For more information please visit Email Security
______________________________________________________________________

**********************************************************************
This email and any files transmitted with it are confidential and
intended solely for the use of the individual or entity to whom they
are addressed. If you have received this email in error please notify
the EPA postmaster - postmaster@anonymised.com
The opinions contained within are personal to the sender and
do not necessarily reflect the policy of the Environmental Protection
Agency.

**********************************************************************

______________________________________________________________________
This email has been scanned by the MessageLabs Email Security System.
For more information please visit Email Security ______________________________________________________________________

------------------------------------------------------------------------------
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. Best Open Source Mac Front-Ends 2024
_______________________________________________
GeoNetwork-users mailing list
GeoNetwork-users@lists.sourceforge.net
geonetwork-users List Signup and Options
GeoNetwork OpenSource is maintained at GeoNetwork - Geographic Metadata Catalog download | SourceForge.net

------------------------------------------------------------------------------
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. Best Open Source Mac Front-Ends 2024
_______________________________________________
GeoNetwork-devel mailing list
GeoNetwork-devel@lists.sourceforge.net
geonetwork-devel List Signup and Options
GeoNetwork OpenSource is maintained at GeoNetwork - Geographic Metadata Catalog download | SourceForge.net