Project

General

Profile

« Previous | Next » 

Revision 7315

check for whitespace in identifiers during create() and update()
https://redmine.dataone.org/issues/3047

View differences:

MNodeService.java
231 231
        }
232 232
        Subject subject = session.getSubject();
233 233

  
234
        // do we have a valid pid?
235
        if (pid == null || pid.getValue().trim().equals("")) {
236
            throw new InvalidRequest("1202", "The provided identifier was invalid.");
237
            
234
        // verify the pid is valid format
235
        if (isValidIdentifier(pid)) {
236
        	throw new InvalidRequest("1202", "The provided identifier is invalid.");
238 237
        }
239 238

  
240 239
        // check for the existing identifier

Also available in: Unified diff