fix for the access control check - earlier only permission 4 and 7 were checked for read. Now the query checks for permissions 5 and 6 also
Modified code to that isModerator param is passed to the xsl which will render the results.
Some small bug fixes...
New functions in the dataset registry to support moderation feature needed for ESA
Changing the table name back to xml_index
Minor change to diagnostic output.
Fixed a log bug.
Modify the bean's get() methods that return String values to trim white space off the string prior to returning it. This is so that input fields that contain only white space will not be treated as valid search values.
New SQL tables and db upgrade scripts that define a new table stucture for identifiers and delete the previously unused accession_number table. This is in anticipation of supporting LSID identifiers. Currently these tables are unused by the servlet but are in place for discussion.
Cleaned up AccessionNumber class to get rid of unused methods. It seems the entire accession_number table is no longer used but has not been deleted from the build. Will do in subsequent commit.
1. Modified buildIndex() so that only one connection is used for both indexing nodes and indexing paths.2. Modified the indexing algo so that indexing of paths is done while nodes are being indexed. Results in a much faster indexing algo3. Replaced access to NodeRecord.<variable> with NodeRecord.<getVariable>
Change the maximum code level reported to the site contact from "info" to "notice". This is to reduce the amount of diagnostic output generated in the email reports to the site contact. Diagnositcs of type "error", "warning", and "notice" will be sent to the site contact, while messages of type "info" and "debug" will not (but they will still be sent to the Harvester Administrator).
Modified the way checkDocumentTable is accessed. Also removed the while loop from the checkDocumentTable. Now if the document is not found, the thread goes to sleep - instead of checking again. (In hope of a more bugfree code)
Replaced access to NodeRecord.<variable> with NodeRecord.<getVariable>
1. Changed teh access modifier from public to private for variables2. Added a new variable for nodedatanumerical3. added a new constructor
Moved printMessage statements to inside the if loop so that they are not printed each time getInstance is called
Using xml_path_index instead of xml_index to find documents which havnt been indexed.
Replaced hardcoded namespaces with variable defined in metacat.properties
Changed logMetacat to be a local variable in MetaCatServlet to avoid any potential threading issues.
Metacat has had problems with threading issues when accessed from ecogrid. These problems may stem from the use of shared global variables within the servlet that are not protected against threading problems. We used a lot of these, which I am eliminating in this commit. Besides final variables used as constants (which are not a problem), now there are only three unprotected variables (sessionHash, logMetacat, and conn) which are harder to eliminate. I will be discussiong this with Sid tomorrow to see how to eliminate them.
Fixed the bug that replicate data file failed that the documents records wouldn't be deleted.
the parameter of method getRevisionTableReList is docidWithoutRev.
Fixed bug that data file upload failed, record couldn't be deleted.
Bug #2207: Implementation of the Metacat Advanced Search engine.
Fixed a bug in log
Fixed log bug when xml_revision updated failed.
Removed extra package declaration in LSID java file.
Initial checkin of LSID support code for metacat. The LSID support hereprovides access to metacat documents through an LSID identifier. Theidentifier takes the form: urn:lsid:ecoinformatics.org:jones:1:1
See http://lsid.sourceforge.net for more details....
Changes in calls made to IndexingQueue class
A version with less number of bugs.
New code for run an indexing queue and indexing thread which runs every 24 hours
Removed the call to indexing function in DBSAXHandler and added a call to indexing function IndexingQueue
removed the indexing code from DBSAXHandler
1. Added code to start the indexing thread.2. Fixed a bug in the query on xml_nodes and xml_index3. Added more debug statements4. Fixed a bug in code which determines namespace
New function which returns the formatted left join query. This is required as Oracle and postgres have different left join syntax
Removed all hard links, and put the jsp page in the same context as the geoserver.
Add more debug info.
Using join query for more efficiency.
Add class as parent class add method.
Add method as parent class adding method.
Add method as parent class adding a method.
Add a method to get doc list query.
Fixed bug to get docid list.
Add more info transfer.
Modified the WARNing message
Fix for bug in the previous commit
Modified the debug levels of debug statements
Add code to handle replication document in xml_document table.
Modification in algo:
1. Find if the root element has prefix (e.g. <eml:eml>). If found, go to step 2, otheriwse go to step 3.
2. Look for xmlns:prefix element to find the ns (e.g.:xmlns:eml="eml://ecoinformatics.org/eml-2.0.0") 2.a If not found go to step 4...
Bugfix for 2091. Removed the function needValidation(). Added function getPrefix which returns the prefix. And use the following steps to find out the namespace
1. Find if the root element has prefix (e.g. <eml:eml>). If found, go to step2, otheriwse go to step 3....
Faster script for upgrading oracle database
Add code to handle catalog is null when inserting xml_revisions table.
Add code to handle write record into xml_documents when catalog id is null.
Bugfix to the code which sets parentnodeid in xml_path_index. (Use setInt instead of setFloat)
Added some documentation and did a little cleanup.
Continued work -- now the user can get info on all layers servered by the wms, including the metacat docs.
Removed sql syntax not acceptable by Oracle.
Changed the filter and ldapbase values in getUserInfo so that it works for both NCEAS and LTER ldap
Bug fix in the changes made in previous commit
Added warning to be displayed in the log when document is not inserted.
Interim checkin -- getting the postgis database setup
Modified the login method in the perl metacat client so that status of the user logging is also returnedEarlier if login info was not valid, 0 was returned. And 1 is sent back if login info was valid.
Now, if valid then following values are returned to indicate user status...
Added support in the metacat client for the new function added to MetaCatServlet
Added a new action - getloggedinuserinfo - which returns information about the user in the following format.
<user><username>uid=sgarg,o=NCEAS,dc=ecoinformatics,dc=org</username><name>Saurabh Garg</name><isAdministrator/><isMOderator/></user>
Removed code entered in previous commit as it is no longer needed
Also in the previous commit, the successful message changed. Now in addtion to the sessionid tag, the following tags also included: <name>[name of the user]</name>, <isModerator> (if is moderator) and <isAdministrator> (if is Administrator)
Added a new function - getUserInfo to AuthInterface and AuthLdapThe function returns a string array for a given username. the array contains the name, organization name and email address of the user. In case of ldap, it is cn, o and mail attributes for ldapbase=username...
Got the metacat datapackage selection (single point) working.
Fixed a bug in QueryGroup which prevented QueryGroup from appending itself to the sql query when no queryTerm is present.
Further work -- added additional layers, added the ability to query AOI. Almost have the js parseing thecorrect metacat url, and sme style changes.
Removed unused subroutines that were for testing.
Adding the control-services.pl utility for failover montitoring. Fromthe README:
This program is designed to run as a script under the Hobbit systemmonitoring program (http://hobbitmon.sourceforge.net/). When Hobbit isconfigured properly, this script will be called to make changes to the...
Remove debugging.
Added some more layers
Fixed the mapbuilder getfeatureinfo function and modified the config. Now the metacat url addresses are available from the rendering.
The index page for the mapbuilder rendering -- running off the geoserverwms/wfs server.
These are the config files for the mapbuilder rendering app that connects togeoserver to access the metacat spatial data. The display works but the abilityto get the url to the metacat document is not yet working. This code waswritten against the mapbuilder 0.2.0.xx and it is recommended that it be run...
Changes in log levels of some commands mentioned in the previos commit.
Replacing MetaCatUtil.debugMessage or MetaCatUtil.logMetacat call with logMetacat (private Logger object) call
Commited the wrong MetaCatUtil.java file last time. Making the changes again.
1. Replacing MetaCatUtil.debugMessage or MetaCatUtil.logMetacat call with logMetacat (private Logger object) call 2. Commented out debugMessage() 3. Removed getLog() and earlier old log4j code...
1. Replacing MetaCatUtil.debugMessage or MetaCatUtil.logMetacat call with logMetacat (private Logger object) call2. Commented out debugMessage()3. Removed getLog() and earlier old log4j code4. Removed formattedDebugMessage
Add a new sql file to alter control file which from knb backup for new file location
Copy the code to generate xml_path_index from xmltables.sql. xmltables.sql is working, so it may fix the bug.
if moderator is logged into metacat and no option for enable-editing is specified then enable editing by default
Fix for bug 2222. So that correct query is generated when searchmode is 'not-contains'.
Change the method to get access document docid and revision.
Fixed bug which can cause eml beta6 couldn't run access control.
Add rev in get data doc info.
Fixed a bug if one server failed in replication, it will cause another server failed.
Add code to guess the docid's revision in read action.
Remove some debug message.
Fixed bug couldn't delete xml_nodes when moving to xml_nodes_revision in replication.
If skin cfg specified access rights to be included for a certain set of users and groups, then those are entered in the access permissions given.
Fix for bug 2220. And check the cfg file if the eml documents generated should be publically readable or not.
Change the code to make sure DocumentImpl class's constructor should have rev attached.
Remove this file.
Added an attribute to the metacat shapefile called area_coef which is a functionof the areal extent of the datapackage -- so a datapackage which was related toa global collection would have a large extent, whereas a 3-foot squared plotwould have a small extent. Also fixed a bug related to the ID field that was...
Added a function to strip out the whitespace that was around the boundingcoordinates retrieved from metacat, and also now writing the full set ofbounding coordiantes (east,west,south,north).
bug fix so that error is displayed if station or reserve is not selected