Handle sessions with null ids gracefully.
Renamed MetaCatUtil to MetacatUtil
Robustly handle file naming as per bug #2566 and the feedback of the scientific programmers (http://tinyurl.com/4n4jve).
revert the changes for: -- On update, check if the accession number exists in the db. If not, change the action to insert.
Quote filenames as per RFC2616 (http://www.w3.org/Protocols/rfc2616/rfc2616-sec19.html#sec19.5.1), this prevents filename truncation on Firefox for files with spaces within the names (part of #2566).
On update, check if the accession number exists in the db. If not, change the action to insert.
Update metacat api documentation
Rename LDAPUtil to AuthUtil
Remove the code to read and write metadata to disk. It is getting put into DocumentImpl
Add some generic typing
Debug and comment changes
check for existing access control rows before inserting (we do not need duplicate rows specifying the same access control)
Added refreshServices action to allow tests to refresh service caches. This will be expanded to only allow for admins.
Move xml schema specific functionality to XMLSchemaService
replicate xml_access entries across servers.see: http://bugzilla.ecoinformatics.org/show_bug.cgi?id=3464note: still needs to be tested...but needed to be checked in for other metacat installations to be updated....
adding document "cart" feature to metacat. will not be highly published as a feature until well-vetted.
set the sessionId from the SessionData object
Created a method in DocumentImpl to read a document file from disk. Created a support method to strip inline data for users that don't have read access.
Add functionality to write and read metadata documents to and from the file system.
remove skin.configs directory.migrate those properties to the style/skins/* properties filesdo not load them during Metacat init.
Get session information from RequestUtil. Change some variable names to camel case.
add ability to access protected data via the datamanager/dataquery feature.Note: the datamanager features rely on the ecogrid stubs being available in Metacat. When Metacat is installed with ecogrid enabled, the required jars are included in the war...something to keep in mind.
add dataquery (from EML's Data Manager library) to the metacat servlet actions
qualify xml and eml properties with an xml. prefix
Continue to qualify property names
Change sitemapInterval property to be sitemap.interval. Add testing property
Separate the init function to pre-confiugured and post-configured methods. the initSecondHalf method allows for the intial configuration of metacat without a restart.
Fully qualify spatial and replication properties
Use qualified properties
Add functionality to allow developer to bypass configuration utility
Use SystemUtil.getContextDir() instead of constructing directory path.
Differentiate between tomcat directory and deployment directory.
Create PropertyService using log directory instead of servlet context.
Change default-style property to application.default-style
Merge 1.9 changes into Head
fixed bug 3403
added support to upload an xml document using multipart encoding. the enables better support for web interfaces that wish to use multipart to upload xml documents. the action is 'insertmultipart'
made it so that the error and success messages from a multipart upload can be transformed using xslt. also added upload functionality to the sms skin
Check into cvs head. Add a debug statement for printing out eml document
Add to cvs headd. Add code to correct invalidated eml 201 doucments.
Enable file naming when returning a zip file of the requested documents.File names for each docid are provided as additional parameters named by the actual docid value that they are providing a name for. An example query string might look like:
action=read&docid=doc.1.1&docid=doc.2.1&qformat=zip&doc.1.1=fileName1.txt&doc.2.1=fileName2.jpg...
Using reponse.getOutputStream to replace reponse.getWriter in query and read method. So metacat can send correct special character back.
ignore commented out DOCTYPE declarations (don't force validation on them)
Modification for changes to the field "MetacatUtil.skinconfigs".
Fixed bug that should throw an exception in upload method.
Change the debug level for Metacat initialization message.
Added param to indicate if public has read access or not, in the method "readFromMetacat". It only does this if reading a metadata document, for a skin-format,and the user is not public. This is useful to the skin's metadata display/editing form, for indicating public accessiblity (or inaccessibility)....
Find out if the document is a Member of an EML package, and if that's not the case, than skip the test to see if access is set through EML metadata.
Refactored upload code to allow arbitrary POST parameter ordering, and open the door to multiple files in one HTTP request. Two new methods to MetaCatUtil to facilitate the file processing: writeTempFile and copyFile.
Backing out change, certain cases cause the file to upload as 0 bytes, which pass all tests but leave us with no data. Will re-commit after 1.8 release and more complete testing.
Updated com.oreilly.servlet (cos.jar) from 19Jun2001 to current 05Nov2002 version. Fixed uploading in MetaCatServlet.java to allow parameters after file object, was disabled for a workaround in the previous library.
Add a delay time for initial indexing
Add debug in query method.
Add statement to output search time to a delimitered file
Add new method to record the total search time to a file.
Change the debug level for timing
Modify the time debug message
Added a new class called Sitemap that is used to generate a series of XML documents representing the URLs of metacat documents following the sitemap protocol. The Sitemap class extends TimerTask so that it can be scheduled to run once a day or so. New configuration options were added to metacat.properties to control where the sitemaps are written and hw often they are updated. By default we do it once a day, as more often is overkill for search engines....
Added new feature to allow metacat documents to be retrieved from a URL that does not use the query url syntax, instead embedding the docid and qformat in the url path, as in this example: http://localhost:8180/knb/metacat/test.1.1/knbThis format allows clients to read documents without entering a query URL, which will be used in a subsequent step to allow search engines to better index metacat content.
Somehow the change went to the head rather than branch. So i rollback the change in head.
This commit is for branch. In this commit the correct ip and user name will be stored in access_log table in replication event. However, it only for Forcereplication. And the test isn't completed yet. This commit is only for future use.
got paging working. metacat also now caches resultsets for users' sessions. the paging is a bit slow, due to some xpath statements. i need to get this optimized now.
adding changes to make paged query results possible
Add exception handle code according the change in SpacialHarvest class.
As a fix to http://bugzilla.ecoinformatics.org/show_bug.cgi?id=2748, I'm applyingthe patch sent to me from Mike Frenock when he reported this bug.
This patch changes MetaCatServlet.handleUploadAction() by first settinga boolean flag on whether the file to be uploaded exists already. If it...
added a method to query metacat to see if a particular docid is registered or not
added getalldocids function to get all docids that match a certain scope.
Updated MetaCatServlet so that it supports a web-based interface for configuring its own properties the first time it is run (determined by the property "configured" being set to false). Which properties are exposed in the web interface is determined by the list of properties in the 'metacat.properties.metadata' file. This file is managed by the new OptionsMetadata class in the utilities module, and provides information that allows metacat to build a human-readable configuration page for the properties. Still need to finish filling out the information in metacat.properties.metadata for the rest of the properties that we want to be editable. This autoconfiguration process is the first step towards building a turnkey installer for metacat....
Ensure that spatial operations are only triggered when runSpatialOption is set to true.
Modified the configuration classes to allow configuration through the web interface of all of the properties set in the metacat.properties file. The layout of this form still needs work, in particular because java.util.Properties does not maintain any order for the properties, nor does it allow for metadata about each property to be set and saved in the file. We can probably overcome this by creating a shadow file that lists all of the options and their metadata (such as grouping, controlled values, etc).
Renamed method.
Began work on a web interface for configuring metacat at runtime. This systemchecks the 'configured' property when metacat starts up. If configured=false, thenit loads an HTML form containing the properties that need to be set. The user configures the properties and they are written into the metacat.properties file. Then metacat needs to be restarted. ...
Eliminated the MetacatUtil.printMessage() method in favor of using the Log4J debugging methods.
Removed the release ant token from all files in 'src'.
release
Changed the filename that is used when data files are downloaded and when XML files are downloaded in XML format. Now, data files use the format "docid-docname". See bug #2566.
Only run spatial cache regeneration once. Plus some fixes to spatial_query action api.
Changed float object handling in spatial components in order to compile on jdk 1.4.2
fix to docid overrides to handle an empty result set
Added docid override mechanism to DBQuery. Bypasses the queryspec.printSQL method and creates an optimized docid query in cases (like the spatial query) where you know the docids a priori
Updated spatial query to also look at point spatial cache as some documents may only be represented as a single point.
Rewrote spatial query handler to use geotools directly against the spatial cache.
initial import of changes to metacat source and config files to support spatial option
Fixed parameter order for call to createSpatialQuery and fixed bounding box intersection logic.
Fix for a bug in MetacatServlet. Metacat assumed that it is supposed to get the schema information from the second line of the document. This is basedon the assumption that xml decleration will always be present. This is good practice but not required. Hence the fix -> Metacat should ignore the...
Changes in the spatial query. The spatial query can be generated on the client side in form of an squery rather than specifically creating one on the server side.Commented out the code which creates spatial query based on the coordinates sent to Metacat. Instead of that, a temporary method was added which creates the squery...
iModified code -- the booleans werent really getting tested :(
iModified the switch to turn/off the spatial searching.:wq
Some style changes and small changes to the spatial querying system.
Patched to fix regression bug that prevented insertion of documentswithout a DOCTYPE or namespace declaration due to anArrayOutOfBoundsException. Now these documents can be inserted, whichis useful for inserting FGDC documents that frequently do not have a...
Modified the way the results page is displayed.
Fix in getNamespace function. Bug reported by Margaret in testing for cases where no namespace is specified.
Integration of new shapefile writers (r. reeves code) with MSO.
Continued integration of the spataial stuff with the metacat servlet.
Integration of the metacat servlet with the spatial option -- rubberbanding is implemented too.
Added a flag for indexing threads so that they exit once Metacat has unloaded.
Added checks for null pointers and changed the name of the config file
Using java.util.Property instead of Options. Options is a singleton class. Hence it cant be used for reading skin property files without changing it into a non-singleton class
Making changes for passing the params to the xsl for skins.
code to handle null pointer exception
Added query for indexing attribute - needed for indexing packageId