Project

General

Profile

« Previous | Next » 

Revision 7318

check for invalid (!) pids. thanks, M. Reyes for catching this
https://redmine.dataone.org/issues/3047

View differences:

src/edu/ucsb/nceas/metacat/dataone/MNodeService.java
232 232
        Subject subject = session.getSubject();
233 233

  
234 234
        // verify the pid is valid format
235
        if (isValidIdentifier(pid)) {
235
        if (!isValidIdentifier(pid)) {
236 236
        	throw new InvalidRequest("1202", "The provided identifier is invalid.");
237 237
        }
238 238

  
src/edu/ucsb/nceas/metacat/dataone/D1NodeService.java
298 298
    }
299 299
    
300 300
    // verify the pid is valid format
301
    if (isValidIdentifier(pid)) {
301
    if (!isValidIdentifier(pid)) {
302 302
    	throw new InvalidRequest("1202", "The provided identifier is invalid.");
303 303
    }
304 304
    

Also available in: Unified diff