Project

General

Profile

« Previous | Next » 

Revision 7044

catch additional NotFound exception for: "do not include log entries for documents that the caller is not allowed to read." https://redmine.dataone.org/issues/2444

View differences:

src/edu/ucsb/nceas/metacat/dataone/D1NodeService.java
460 460
      try {
461 461
    	  allowed = isAuthorized(session, identifier, Permission.READ);
462 462
      } catch (NotAuthorized ignore) {}
463
      catch (NotFound nf) {
464
    	  logMetacat.warn("Could not check authorization for pid: " + identifier.getValue(), nf);
465
      }
463 466
      if (!allowed) {
464 467
    	  logMetacat.debug(Permission.READ + " not allowed on document: " + identifier.getValue());
465 468
    	  continue;

Also available in: Unified diff