Project

General

Profile

« Previous | Next » 

Revision 7244

Added by Chris Jones over 12 years ago

Add debug logging to delete() to understand why we're getting InsufficientKarmaException.

View differences:

src/edu/ucsb/nceas/metacat/dataone/D1NodeService.java
205 205
          throw new ServiceFailure("1350", "There was a problem deleting the object." + "The error message was: " + e.getMessage());
206 206

  
207 207
      } catch (InsufficientKarmaException e) {
208
          if ( logMetacat.isDebugEnabled() ) {
209
              e.printStackTrace();
210
          }
208 211
          throw new NotAuthorized("1320", "The provided identity does not have " + "permission to DELETE objects on the Member Node.");
209

  
212
      
210 213
      } catch (Exception e) { // for some reason DocumentImpl throws a general Exception
211 214
          throw new ServiceFailure("1350", "There was a problem deleting the object." + "The error message was: " + e.getMessage());
212 215
      }

Also available in: Unified diff