Project

General

Profile

« Previous | Next » 

Revision 6663

throw NotAuthorized when there is no session

View differences:

src/edu/ucsb/nceas/metacat/dataone/MNodeService.java
424 424
    public boolean replicate(Session session, SystemMetadata sysmeta, NodeReference sourceNode) 
425 425
        throws NotImplemented, ServiceFailure, NotAuthorized, InvalidRequest, 
426 426
        InsufficientResources, UnsupportedType {
427
    	
428
    	// cannot be called by public
429
        if (session == null) {
430
        	throw new NotAuthorized("2152", "No session was provided.");
431
        }
427 432

  
428 433
        logMetacat.info("MNodeService.replicate() called with parameters: \n" +
429 434
            "\tSession.Subject      = " + session.getSubject().getValue() + "\n" +

Also available in: Unified diff