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:

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

  

Also available in: Unified diff