Project

General

Profile

« Previous | Next » 

Revision 7135

do not create docid-guid mapping unless we are supposed to write access rules for the data to the dbase
https://redmine.dataone.org/issues/2572

View differences:

src/edu/ucsb/nceas/metacat/Eml210SAXHandler.java
1900 1900
			try {
1901 1901
				guid = IdentifierManager.getInstance().getGUID(docid, rev);
1902 1902
			} catch (McdbDocNotFoundException e1) {
1903
				// no need to do this if we are not writing access rules for the data
1904
				if (!writeAccessRules) {
1905
					logMetacat.warn("Not configured to write access rules for data referenced by: " + url);
1906
					return;
1907
				}
1903 1908
				guid = docid + "." + rev;
1904 1909
				IdentifierManager.getInstance().createMapping(guid, guid);
1905 1910
			}

Also available in: Unified diff