Project

General

Profile

« Previous | Next » 

Revision 7064

check for null session (public) calls to MN.replicate() before passing it to the asynchronous implementation

View differences:

src/edu/ucsb/nceas/metacat/restservice/MNResourceHandler.java
639 639

  
640 640
        logMetacat.debug("in POST replicate()");
641 641
        
642
        // somewhat unorthodox, but the call is asynchronous and we'd like to return this info sooner
643
        if (session == null) {
644
        	String msg = "No session was provided.";
645
            NotAuthorized failure = new NotAuthorized("2152", msg);
646
        	throw failure;
647
        }
648
        
642 649
        //parse the systemMetadata
643 650
        final SystemMetadata sysmeta = collectSystemMetadata();
644 651
        

Also available in: Unified diff