Opened 12 years ago

Closed 11 years ago

#1125 closed defect (fixed)

how to modify getCapabilities document without using the GN portal

Reported by: plcking Owned by: geonetwork-devel@…
Priority: major Milestone: v2.10.0 RC0
Component: Catalog server Version: v2.6.4
Keywords: Cc:

Description

I have 400K records (ISO19115) loaded into Geonetwork. I have implemented all the recommendations in http://geonetwork-opensource.org/manuals/trunk/users/admin/advanced-configuration/index.html. I can access data via CSW requests, but I cannot access the portal (timeout). In the immediate term, I would like to change the GetCapabilities document without using the admin interface. How can I do this ?

Change History (6)

comment:1 by jesseeichar, 12 years ago

You can edit the cswservercapabilitiesinfo table in the database directly.

When you say portal what url is it that is failing to load? main.home?

It is probably because it is trying to get the most popular and most recent metadata and if a search takes 60 seconds then main.home will take 120 seconds or so. Certainly need to fix the search problem, it should be able to handle 400,000 records without a problem.

comment:2 by simonp, 12 years ago

If main.home then it is almost certainly the guiservice GetLatestUpdated - it does a rather simple minded query (when large catalogs are used) on the database which results in attempting to retrieve and sort all metadata ids in metadata table by changeDate - this is fixed in 2.8.x to use Lucene instead - however I thought that fix was also in 2.6.x? Seems not just by looking at the code. Remove the guiservice GetLatestUpdated is an easy fix as is taking the code from 2.8.x (for later) to put in 2.6.5

in reply to:  2 comment:3 by plcking, 12 years ago

Replying to simonp:

If main.home then it is almost certainly the guiservice GetLatestUpdated - it does a rather simple minded query (when large catalogs are used) on the database which results in attempting to retrieve and sort all metadata ids in metadata table by changeDate - this is fixed in 2.8.x to use Lucene instead - however I thought that fix was also in 2.6.x? Seems not just by looking at the code. Remove the guiservice GetLatestUpdated is an easy fix as is taking the code from 2.8.x (for later) to put in 2.6.5

How can I remove the guiservice GetLatestUpdated ? I cannot build the s/w using maven due to numerous errors - I have to compile modified java files in the tomcat directory of interest(CLASSPATH is setup properly to do this). So, if I receive any new/modified java modules from you, I can compile them properly.

When is v2.8 going to be available (war file) from http://geonetwork-opensource.org/downloads.html ?

Pat

comment:4 by simonp, 12 years ago

Not sure which branch you are using but they all compile and build ok for me (2.9.0 ie. trunk seems to have some bugs but that doesn't surprise me as its under active dev) - maybe you have your own mods?

In any case, you don't need to do anything with Java to remove that guiservice - edit webapps/geonetwork/WEB-INF/config.xml and comment out the guiservice GetLatestUpdated in the service main.home (or wherever you find it) - guiservices usually just create content and put it onto an XPath for the presentation XSLTs - if the content from the guiservice isn't there everything should still run (in this case the list of latest records will be absent).

comment:5 by plcking, 12 years ago

yes, removing the service solved the problem....thanks very much !...Pat

comment:6 by fxp, 11 years ago

Resolution: fixed
Status: newclosed
Note: See TracTickets for help on using tickets.