diff options
author | Maria Odea B. Ching <oching@apache.org> | 2009-03-20 16:05:05 +0000 |
---|---|---|
committer | Maria Odea B. Ching <oching@apache.org> | 2009-03-20 16:05:05 +0000 |
commit | 9bd751e3d523d5be4fc2691958715c0f34c6e413 (patch) | |
tree | 6dbb0c2bbce1a7300720e98455d22d02ccb82e68 /archiva-modules/archiva-base/archiva-repository-layer | |
parent | 61c6ef7e32106f2adf681ad6299318301f4c6927 (diff) | |
download | archiva-9bd751e3d523d5be4fc2691958715c0f34c6e413.tar.gz archiva-9bd751e3d523d5be4fc2691958715c0f34c6e413.zip |
[MRM-1136]
o remove namespaces before getting child nodes of metadata
o added test case
git-svn-id: https://svn.apache.org/repos/asf/archiva/trunk@756559 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'archiva-modules/archiva-base/archiva-repository-layer')
-rw-r--r-- | archiva-modules/archiva-base/archiva-repository-layer/src/main/java/org/apache/maven/archiva/repository/metadata/RepositoryMetadataReader.java | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/archiva-modules/archiva-base/archiva-repository-layer/src/main/java/org/apache/maven/archiva/repository/metadata/RepositoryMetadataReader.java b/archiva-modules/archiva-base/archiva-repository-layer/src/main/java/org/apache/maven/archiva/repository/metadata/RepositoryMetadataReader.java index b1639aac1..a6fc50b82 100644 --- a/archiva-modules/archiva-base/archiva-repository-layer/src/main/java/org/apache/maven/archiva/repository/metadata/RepositoryMetadataReader.java +++ b/archiva-modules/archiva-base/archiva-repository-layer/src/main/java/org/apache/maven/archiva/repository/metadata/RepositoryMetadataReader.java @@ -50,7 +50,9 @@ public class RepositoryMetadataReader try { XMLReader xml = new XMLReader( "metadata", metadataFile ); - + // invoke this to remove namespaces, see MRM-1136 + xml.removeNamespaces(); + ArchivaRepositoryMetadata metadata = new ArchivaRepositoryMetadata(); metadata.setGroupId( xml.getElementText( "//metadata/groupId" ) ); |