I have a problem with downloading metadata files. The problem happens when
the user clicks on the link under Transfer options -> Data for download.
The error message is as follows:
You have not the the correct permissions to access The Following service /
GeoNetwork / srv / eng / http / localhost / GeoNetwork / srv / eng /
resources.get
The problem also occurs with users who have all the administration
privileges. If, instead, the user clicks with the right button and then
"Save as", the download process works. The alternative download method with
the "Data for Download" button also works correctly.
I've inspected the html element (the link to download) with the "Inspect
Element" function of the browser. The following html pice of code is shown:
<a href=
"http://geonetwork.pv.sipam.gov.br/geonetwork/srv/en/resources.get?id=778&fname=file_nov2009.pdf&access=private"<http://geonetwork.pv.sipam.gov.br/geonetwork/srv/en/resources.get?id=778&fname=file_nov2009.pdf&access=private>title="Metadata
Title" onclick="runFileDownload(this.href, this.title);
return false;"> METADATA TEXT </a>
I've suspected that the "return false" statement had something to do with
error. Then, I changed the "return false" to "return true" directly in the
generated html. By doing this, the download worked.
Does it happens only in my server instance ? Can any body suggest me an
appropriate procedure on how to fix it? I could change the same statement
in the xsl file but I'm not sure whether it is suitable or not.
Versions of the applications:
Geonetwork 2.10.2 (also had the same problem with 2.10.1)
Tomcat 7.0.37
Centos 5.3.