[jboss-jira] [JBoss JIRA] Commented: (JBBUILD-670) Migrate existing Nexus Audit information to standard XML format
Paul Gier (JIRA)
jira-events at lists.jboss.org
Wed Apr 13 11:12:33 EDT 2011
[ https://issues.jboss.org/browse/JBBUILD-670?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12595304#comment-12595304 ]
Paul Gier commented on JBBUILD-670:
-----------------------------------
The metadata audit.json files seem to have a different format than the other files. So there are messages like in the log file like this:
Attribute request.user set to tcunning","captured-on":"2011-03-04 14:32:46 -0500
The audit file looks like this:
{quote}
\{"owner":"tcunning","captured-on":"2011-03-04 14:32:26 -0500",
"references-path":"/org/switchyard/switchyard-plugin/maven-metadata.xml",
"repository-id":"jboss_release_staging_profile-031"\}
{quote}
So the Perl script probably did a greedy match. These should be fixed, although it is not urgent since it seems to only have affected the metadata files and not the artifact files.
> Migrate existing Nexus Audit information to standard XML format
> ---------------------------------------------------------------
>
> Key: JBBUILD-670
> URL: https://issues.jboss.org/browse/JBBUILD-670
> Project: JBoss Build System
> Issue Type: Task
> Reporter: Paul Gier
> Assignee: Paul Gier
> Priority: Critical
> Fix For: Build Support 2011
>
> Attachments: jboss-servlet-api-2.5.0.GA.jar, jboss-test-1.1.6-SNAPSHOT.pom.md5
>
>
> We currently have audit information (username, timestamp) stored in .json files in the repository. Nexus uses an XML format to store this information, and recent versions of Nexus allow easy way to view this information in the Nexus UI. The existing audit information should be migrated to the standard Nexus XML format.
> These XML files are located in the directory "sonatype-work/nexus/proxy/attributes". For each file in each Maven repository hosted by Nexus, there is a file with the same name in this attributes directory. For example, "sonatype-work/nexus/proxy/attributes/jboss-releases/org/jboss/javaee/jboss-servlet-api/2.5.0.GA/jboss-servlet-api-2.5.0.GA.jar" is actually an XML file containing the attributes for the named jar file.
> Note: even though the files end with ".jar" or ".md5", they are actually XML files.
> The artifacts that were released before the original Nexus migration do not include a username in the XML file, although they do include a timestamp. This appears to be the file creation date. In the migration, these timestamps should be overwritten if possible.
> 1. Check whether the user field exists for a given file.
> 2. If it does not exist, copy the username and timestamp fields to the Nexus attribute file.
--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira
More information about the jboss-jira
mailing list