Project

General

Profile

« Previous | Next » 

Revision 8791

allow updates to all doi: prefixes - realized we are already restricting to specific replica servers when updating these. worst case is we try to update a registration for which we are not the owner. https://projects.ecoinformatics.org/ecoinfo/issues/6440

View differences:

src/edu/ucsb/nceas/metacat/admin/upgrade/UpdateDOI.java
72 72
		
73 73
		// look up the prefix - NOTE we have used different shoulders over time, so might consider updating anything with "doi:..."
74 74
		String prefix = "doi:";
75
		try {
76
			prefix = PropertyService.getProperty("guid.ezid.doishoulder." + serverLocation);
77
		} catch (PropertyNotFoundException pnfe) {
78
			log.error("Could not look up the doi shoulder for this server", pnfe);
79
			return;
80
		}
75
//		try {
76
//			prefix = PropertyService.getProperty("guid.ezid.doishoulder." + serverLocation);
77
//		} catch (PropertyNotFoundException pnfe) {
78
//			log.error("Could not look up the doi shoulder for this server", pnfe);
79
//			return;
80
//		}
81 81

  
82 82
		for (String pid: identifiers) {
83 83
			try {

Also available in: Unified diff