#1237: 2.8.0 version introduced harvesting incompatibility
-----------------------+----------------------------------------------------
Reporter: cmartinez | Owner: geonetwork-devel@…
Type: defect | Status: new
Priority: major | Milestone:
Component: General | Version: v2.8.0
Keywords: |
-----------------------+----------------------------------------------------
The changes introduced on gn2.8 regarding language codes (e.g. 'eng'
insted of 'en') have broken harvesting compatibility with pre-2.8.0
geonetwork versions.
Geonetwork 2.6 tries to connect to /geonetwork/srv/en/xml.search, which
has changed to /geonetwork/srv/eng/xml.search in gn2.8.
The 2.8 server sends a HTTP/1.1 301 Moved Permanently response, but this
is not handled at all by gn harvester, which tries to directly parse this
response as an xml.search response and thus fails.
--
Ticket URL: <http://trac.osgeo.org/geonetwork/ticket/1237>
GeoNetwork opensource Developer website <http://sourceforge.net/projects/geonetwork/>
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.
#1237: 2.8.0 version introduced harvesting incompatibility
-----------------------+----------------------------------------------------
Reporter: cmartinez | Owner: geonetwork-devel@…
Type: defect | Status: new
Priority: major | Milestone:
Component: General | Version: v2.8.0
Keywords: |
-----------------------+----------------------------------------------------
Changes (by cmartinez):
* cc: cmartinez (added)
--
Ticket URL: <http://trac.osgeo.org/geonetwork/ticket/1237#comment:1>
GeoNetwork opensource Developer website <http://sourceforge.net/projects/geonetwork/>
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.
#1237: 2.8.0 version introduced harvesting incompatibility
-----------------------+----------------------------------------------------
Reporter: cmartinez | Owner: geonetwork-devel@…
Type: defect | Status: new
Priority: major | Milestone:
Component: General | Version: v2.8.0
Keywords: |
-----------------------+----------------------------------------------------
Comment(by josegar74):
A fix to don't break 2.6, I think should be update {{{WEB-
INF/urlrewrite.xml}}} language rules to use a redirect instead of
permanent-redirect, like this:
{{{
<rule>
<from>^(.*)/en/(.*)$</from>
<to type="redirect" last="true">%{context-path}$1/eng/$2</to>
</rule>
}}}
After this change, GeoNetwork requires to be restarted.
I'll check if works ok and commit changes so are available for 2.8.1
--
Ticket URL: <http://trac.osgeo.org/geonetwork/ticket/1237#comment:2>
GeoNetwork opensource Developer website <http://sourceforge.net/projects/geonetwork/>
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.
#1237: 2.8.0 version introduced harvesting incompatibility
-----------------------+----------------------------------------------------
Reporter: cmartinez | Owner: geonetwork-devel@…
Type: defect | Status: new
Priority: major | Milestone:
Component: General | Version: v2.8.0
Keywords: |
-----------------------+----------------------------------------------------
Comment(by cmartinez):
I am afraid it will not work without changes on 2.6, as the harvester is
using POST method, and httpclient doesn't automatically handle redirects
for POST (they have to be handled explicitly, getting the redirection
address from the response and executing the request again for the new
address).
--
Ticket URL: <http://trac.osgeo.org/geonetwork/ticket/1237#comment:3>
GeoNetwork opensource Developer website <http://sourceforge.net/projects/geonetwork/>
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.
#1237: 2.8.0 version introduced harvesting incompatibility
-----------------------+----------------------------------------------------
Reporter: cmartinez | Owner: geonetwork-devel@…
Type: defect | Status: new
Priority: major | Milestone:
Component: General | Version: v2.8.0
Keywords: |
-----------------------+----------------------------------------------------
Comment(by cmartinez):
I attach a patch for 2.6 version which solves the problem
Warning: it is not a generic patch nor has not been tested thoroughly. Use
it at your own risk!
--
Ticket URL: <http://trac.osgeo.org/geonetwork/ticket/1237#comment:4>
GeoNetwork opensource Developer website <http://sourceforge.net/projects/geonetwork/>
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.
#1237: 2.8.0 version introduced harvesting incompatibility
-----------------------+----------------------------------------------------
Reporter: cmartinez | Owner: geonetwork-devel@…
Type: defect | Status: new
Priority: major | Milestone: v2.8.1
Component: General | Version: v2.8.0
Keywords: |
-----------------------+----------------------------------------------------
Changes (by ianwallen):
* milestone: => v2.8.1
--
Ticket URL: <http://trac.osgeo.org/geonetwork/ticket/1237#comment:5>
GeoNetwork opensource Developer website <http://sourceforge.net/projects/geonetwork/>
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.