Skip to content

Commit 8b68f53

Browse files
committed
fix issue with old namespaces
1 parent 2126816 commit 8b68f53

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/main/java/edu/ucsb/nceas/mdqengine/store/DatabaseStore.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -181,7 +181,8 @@ public Run getRun(String metadataId, String suiteId) throws MetadigStoreExceptio
181181
} catch (Exception e) {
182182
// a bunch of old docs don't conform to any schema, so if above fails
183183
// just unmarshall according to the class definition
184-
InputStream is = new ByteArrayInputStream(resultStr.getBytes());
184+
String xml = XmlMarshaller.normalizeNamespace(resultStr);
185+
InputStream is = new ByteArrayInputStream(xml.getBytes());
185186
run = TypeMarshaller.unmarshalTypeFromStream(Run.class, is);
186187
}
187188

0 commit comments

Comments
 (0)