Project

General

Profile

  • svn:eol-style: native
  • svn:executable: *
  • svn:keywords: Author Date Id Revision

# Date Author Comment
9633 04/01/2016 03:49 PM ben leinfelder

merge changes to accommodate multiple alternative identifiers into trunk from 2.6 branch.

9598 03/29/2016 07:42 AM Chris Jones

Merge registry changes into the trunk.

9587 03/24/2016 04:16 PM Chris Jones

Merge minor registry changes from the 2.6 branch back to the trunk.

refs https://github.nceas.ucsb.edu/KNB/arctic-data/issues/107

9557 03/15/2016 08:12 AM Chris Jones

Add a fundingElement() method to insert the funding element into the generted EML. Ensure it is added to the template variables hash for maintaining state across stages.

refs https://github.nceas.ucsb.edu/KNB/arctic-data/issues/42

9554 03/10/2016 03:54 PM Chris Jones

Fix a bug in testing the validity of the CGI Session. It can't be empty or expired.

refs https://github.nceas.ucsb.edu/KNB/arctic-data/issues/42

9551 03/09/2016 12:10 PM Chris Jones

Validate the session during the modification stage, rather than just assuming a CGI session (support tokens too).

Also, fix the XML document validation issue where an <additionalParty> element is added prior to the <metadataProvider> element. This seems to be an intermittent issue, and may be due to more recent versions of perl returning hash contents more randomly than previous versions. The %orig hash passed in to personnelList() is assumed to be random now, and I just ensured the metadataProvider is first in the produced string....

9545 03/07/2016 04:15 PM Chris Jones

Modify getCredentials() to support token-based credentials.

refs https://github.nceas.ucsb.edu/KNB/arctic-data/issues/42

9539 03/02/2016 09:58 AM Chris Jones

We ended up not being able to use IO::Socket::SSL, so I removed the import statement. Also, add the new Perl module dependencies to the installation documentation.

refs https://github.nceas.ucsb.edu/KNB/arctic-data/issues/42

9536 02/26/2016 08:42 AM Chris Jones

Change getUsername() to also support adding usernames into an EML access element from the authentication token's 'sub' claim.
Also, add a bit of debugging output for tracing the flow of the XML generation.

refs https://github.nceas.ucsb.edu/KNB/arctic-data/issues/42

9533 02/25/2016 08:33 AM Chris Jones

dd the hasValidAuthToken() method to determine if the current token (if any) is valid. Use this and validateSession() within the script to determine if we need to call Metacat->login() or not. Add some minor debugging to work through the code stages using auth tokens....

9532 02/23/2016 11:39 AM Chris Jones

Fix a couple of syntax issues.

refs https://github.nceas.ucsb.edu/KNB/arctic-data/issues/42

9531 02/23/2016 11:13 AM Chris Jones

Don't forget to set the token variable from the HTTP_AUTHORIZATION environment variable.

refs https://github.nceas.ucsb.edu/KNB/arctic-data/issues/42

9530 02/23/2016 10:19 AM Chris Jones

Add a setAuthToken() method. when the HTTP_AUTHORIZATION environment variable is set, set the value as the `auth_token_header` instance variable in the Metacat instance passed in. This requires that the Apache installation includes an HTTP rewrite rule to pass the header on to an CGI processing the request. Call this method whenever we instantiate a Metacat object....

9142 03/06/2015 02:48 PM ben leinfelder

do not require site parameter if registry.show.siteList=false.
https://projects.ecoinformatics.org/ecoinfo/issues/6687

8844 09/02/2014 02:07 PM ben leinfelder

use configured auth.base rather than hard-coded dc=ecoinformatics,dc=org. https://projects.ecoinformatics.org/ecoinfo/issues/6592

8820 08/04/2014 10:04 AM Lauren Walker

Login automatically via curl rather than manually entering the cookie info for the registry test script

8816 07/29/2014 05:33 PM Lauren Walker

Create a lock file for the registry
if one doesn't exist

8815 07/29/2014 04:35 PM Lauren Walker

Allow the registry form to specify a docid scope

8814 07/29/2014 03:53 PM Lauren Walker

Only lock the local docid file when creating a new docid, not when inserting, for faster upload times. Remove extra debug messages from testing.

8813 07/28/2014 05:22 PM Lauren Walker

Fix bug in the online registry where data files were not using the new docid creation process

8812 07/28/2014 03:57 PM Lauren Walker

Lock a local file while docids are being created so multiple docs can be uploaded at once

8522 01/22/2014 04:32 PM Jing Tao

Pass the userManagementUrl to templates.

8369 11/05/2013 04:27 PM ben leinfelder

always return the metacat logout form when calling the perl registry logout action, even when there is no perl session to invalidate -- needed for metacatui.

8348 10/29/2013 03:48 PM ben leinfelder

do not include default organization for the metacatui "skin"

7822 06/21/2013 04:15 PM ben leinfelder

correctly delete data file when we are done with it. https://projects.ecoinformatics.org/ecoinfo/issues/6007

7820 06/21/2013 03:18 PM ben leinfelder

send the original filename in the upload() method since that is supported by the Metacat API. https://projects.ecoinformatics.org/ecoinfo/issues/6007

7819 06/21/2013 03:10 PM ben leinfelder

remove the unique string when generating data file metadata. https://projects.ecoinformatics.org/ecoinfo/issues/6007

7818 06/21/2013 02:48 PM ben leinfelder

debugging. https://projects.ecoinformatics.org/ecoinfo/issues/6007

7817 06/21/2013 01:44 PM ben leinfelder

use File::Temp to write data files in registry. https://projects.ecoinformatics.org/ecoinfo/issues/6007

7700 05/16/2013 03:22 PM ben leinfelder

use correct test for PID param.

7695 05/15/2013 05:16 PM ben leinfelder

Allow use of PID instead of docid in the Perl registry. At least for reading/editing and deleting existing content. Does not create content using a pid. https://projects.ecoinformatics.org/ecoinfo/issues/5932

7200 05/29/2012 04:19 PM ben leinfelder

use 'allowFirst' for access rules. We have deprecated 'denyFirst' and deny rules in Metacat as of 2.0.0

7198 05/29/2012 02:53 PM ben leinfelder

handle https-only server configuration -- must pull resources from https not http for the skins etc.

6769 12/12/2011 01:22 PM ben leinfelder

ROLLBACK: check for non-public session in Metacat before showing the registry form
http://bugzilla.ecoinformatics.org/process_bug.cgi

6768 12/12/2011 12:41 PM ben leinfelder

check for non-public session in Metacat before showing the registry form
http://bugzilla.ecoinformatics.org/process_bug.cgi

5714 12/09/2010 03:54 PM ben leinfelder

use EML 2.1.1 and UTF-8

5311 04/14/2010 11:31 AM daigle

Merge 1.9.2 changes back into the trunk

5244 02/24/2010 04:55 PM Jing Tao

Fix two issues: Remove State from 'Data Set Contact' section of confirmation form (part of #3922), and make sure when editing a document that email addresses are picked up appropriately (capitalization).

5201 01/26/2010 03:50 PM daigle

Get the latest revision from metacat when a modify call docid does not have a revision number.

5173 12/30/2009 09:24 AM daigle

remove extra open paren

5152 12/03/2009 03:12 PM daigle

When comparing lat and long ranges, make sure the values have content first. Perl values with no content = 0.

5149 12/02/2009 12:45 PM walbridge

fix file name reference for skin configuration file

4916 04/13/2009 04:27 PM walbridge

Further fixes to handle mixed-file uploads:
- set the fileCount object based on upCount existing files
- use ucount only if it exists; remove debugging'
- the entry form javascript now correctly tracks the file numbers, and can be relied on instead of using upCount...

4905 04/06/2009 03:28 PM walbridge

Display helpful error message when user lacks permissions to edit a document, supress the 'use Morpho' message (closes Bug #3928)

4901 04/03/2009 02:47 PM walbridge

Three small fixes:
- 'salutation' was misspelled and wasn't picked up correctly in document modificiation
- keyword handling wasn't setting the thesaurus correctly
- check against the full list of moderators for the ACL validation

4891 04/01/2009 05:01 PM walbridge

Adding back fix for editing documents with multiple keywords, closing #3929

4789 01/29/2009 10:15 AM daigle

Add a short sleep when moderator accepts document so system can update. This will make sure correct documents get returned to moderators list.

4758 01/15/2009 07:41 PM walbridge

A slew of fixes in the process of fixing bug #3679:
- omit port number from the contextUrl if running on 80, looks bad in exposed URLs
- explicitly pass the metacat object to newAccessionNumber, the global definition of the object had introduced a difficult to track bug...

4754 01/15/2009 11:38 AM walbridge

- move moderatorComments into //additionalMetadata/metadata/ as per EML 2.1 (Bug #3679)
- overlay skin-specific email properties on system-level properties (email hostname)

4746 01/13/2009 03:19 PM walbridge

DRY out login request code

4745 01/13/2009 12:20 PM walbridge

Ensure that file permission is always set. If unset, it'll cause the EML document to be invalid.

4744 01/13/2009 12:00 PM walbridge

Complete implementation of otherEntity editing and deletion, syncronizing changes to EML document. Now all elements which are created by the form can also be edited (Bug #3319). Also prevented associated party duplication on modification.

4742 01/12/2009 04:33 PM walbridge

only shift once; fix typo in writeFile

4741 01/12/2009 12:32 PM walbridge

Fix issue with missing AdminDB parameters causing the registry script to fail (Bug #3741)

4739 01/09/2009 03:30 PM walbridge

standardize registry debug messages with 'Registry:' prefix

4738 01/09/2009 02:37 PM walbridge

Further fixes for allowing editing with otherEntity objects, completed deserialization and copying of file metadata from existing data objects (Bug #3319). Still needs more work.

4737 01/09/2009 12:27 PM walbridge

fix typo preventing guide pages from showing (Bug #3726)

4731 01/06/2009 04:35 PM daigle

Don't die if the xml-debug file can't be written to the temporary directory. Instead, write a warning. Include the directions for making the temporary dir writable to the apache user in documentation.

4730 01/06/2009 12:28 PM walbridge

Include error checking for required distribution elements, which must be non-empty strings in EML 2.1 (bug #3721).

4726 01/02/2009 01:50 PM walbridge

Update moderators element to current token, fix undefined variable in ESA logic.

4625 11/24/2008 03:03 PM walbridge

Number of ESA-related fixes:
- fix review panel to reference valid URL using cgiPrefix
- update ESA document creation to use XSLT methods instead of split()
- add code for ESA access rules fix (to be used in 1.9.1)
- use moderators in metacat.properties (postpone skin-based configuration till 1.9.1)...

4606 11/20/2008 05:31 PM walbridge

Further ESA fixes: More 2.1.0 compliance, fix security issue

4601 11/19/2008 06:57 PM walbridge

updated handleModAccept to be EML 2.1.0 compliant, streamlined document generation to use EML creation functions.

4600 11/19/2008 06:26 PM walbridge

Update accessElement to accept a value for publicly readable

4594 11/19/2008 04:08 PM walbridge

Add wrapper function for transforming XML documents to current EML, change ESA skin to use newAssessionNumber, parse EML document with query instead of split()

4578 11/19/2008 11:13 AM walbridge

Add incrementRevision function to replace duplicated code

4577 11/19/2008 10:58 AM walbridge

CODE FORMATTING ONLY: Fix all the inconsistencies I found within the script to follow the standards used within 80% of the code: No tabs, 'if (eval) {' operator spacing, four spaces indentation, replace exit(0) with exit().

4554 11/10/2008 06:35 PM walbridge

add start of otherEntity processing for registry edits

4553 11/10/2008 06:21 PM walbridge

Editing documents should check for ACL elements under //access now instead of //dataset/access

4552 11/10/2008 06:07 PM walbridge

Transform EML 2.0.x documents to 2.1.0 which are found when editing with the registry, using an XSLT transformation.

4541 11/10/2008 02:59 PM walbridge

Remove EML2 beta6 document conversion support, the files required for conversion have been deprecated from Metacat.

4520 11/06/2008 11:29 AM walbridge

Update STMML to the newest version as per EML 2.1.0

4519 11/06/2008 11:28 AM walbridge

Dump copy of EML document being uploaded when debug mode is enabled.

4517 11/05/2008 05:20 PM walbridge

Partial fix for #3496, making the registry create EML 2.1.0 documents. The documents are internally valid 2.1.0 (they run against the validator correctly) but aren't inserting into Metacat correctly as of yet.

4394 09/26/2008 10:28 AM walbridge

Further rework on ldapweb.cgi for 1.9 compatibility. Finished changes needed to have skinnable presentation for ldapweb.cgi, and reworked the organization logic to be compatible with our current method of storing the data (organization.* within metacat.properties).

4378 09/23/2008 04:42 PM walbridge

Number of fixes, including removing all lastid code and replacing with a single function which always queries remotely instead of relying on lookups, solving #3019. Fixed parsing of spatial coordinates for site-based skins, removed dependency on AppConfig as we're fully using .properties files at this point.

4368 09/23/2008 09:36 AM daigle

Source the lib directory in the metacat application. This is the new location of Metacat.pm

4357 09/16/2008 02:54 PM walbridge

Further improvements to the registry to properly support the new properties. Removed all variables previously passed around between forms which should always be available canonically from the skin.properties file and replaced with refences to properties value for the skin being used. Removed some cruft from both files, fixed mior issues mentioned in bug #3487.

4190 07/31/2008 05:26 PM walbridge

Allow script to be run from command line, more token changes including all path changes for URLs and directories.

4182 07/30/2008 10:23 AM walbridge

Consolidation of property names in register-dataset.cgi; returned runConfiguration to default true

4080 07/06/2008 09:25 PM daigle

Merge 1.9 changes into Head

4010 06/18/2008 04:30 PM Jing Tao

Merge METACAT_1_8_1 to cvs head.

3758 03/05/2008 05:05 PM Jing Tao

Modified the normalize subroutine - don't use 26 (url encoding) to replace x%x

3629 11/30/2007 04:47 PM walbridge

Workaround for a bizzare submission issue stemming from the debug sub. Modified the NCEAS project list to be robust and rely on the presence of the AdminDB module and a working connection to the DB for listing projects.

3598 11/20/2007 01:26 PM walbridge

Updated the ResponsibleParty object creation to be more robust. Now handles N MetadataProvider elements as expected.

3475 09/26/2007 04:41 PM walbridge

refactored <access> and <allow> element creation. Added logic to give both owner and skin admin privilages to access uploaded data objects.

3473 09/25/2007 04:12 PM walbridge

Cleaned up regexes used in register-dataset.cgi to support arbitrary numbers of elements for keywords. Cleaned up regexes for state selection, to omit default values. Added debug as a GET parameter, so a page can be debugged by appending `&debug=1'. Committed latest changes to file processing, to allow files to be deleted after returning to the entry page from confirmation or processing errors. Seperated out entryForm.js from entryForm.tmpl to simplify debugging.

3422 09/11/2007 03:53 PM walbridge

Added submission of data files to the registry. New parameter 'hasUpload' can be set on a per-skin basis to enable the uploading of data objects to be associated with a metadata document. NCEAS skin is using this by default, to be changed in the future for other skins....

3387 08/29/2007 05:30 PM Jing Tao

Getting project list from nceas admin db.

3386 08/28/2007 05:02 PM Jing Tao

fixed bug that input form coudn't be shown.

3292 06/04/2007 11:56 AM Jing Tao

Fixed bug that docid has no seperator in email.

3291 05/29/2007 03:11 PM Jing Tao

Remove the rule that the access allow rule should equals three.

2994 04/25/2006 03:37 PM sgarg

added function to get list of projects for NCEAS from a given project list

2894 01/19/2006 02:37 PM sgarg

variable for showing instructions

2869 12/16/2005 02:34 PM sgarg

added code to give access to moderator group on the review document

2864 12/16/2005 12:06 PM sgarg

Added template for getting the review

2859 12/16/2005 08:52 AM sgarg

Made changes so that the user is prompted to login before entering a dataset

2858 12/15/2005 04:49 PM sgarg

Added functionality for storing comments and displaying them. Also added functionality for reading the eml document.

2847 12/15/2005 10:01 AM sgarg

bugfixes in previous code and added functionality to store reviews on various documents...

2808 12/01/2005 02:08 PM sgarg

modified mod_revise so that Revision Requested is added to the document in additionalMetadata/moderatorComment which can be used by the skin in searching for documents which havnt been requested for revision