new ObjectChecker().checkTree(raw); } catch (CorruptObjectException error) { r.append("*** ERROR: ").append(error.getMessage()).append("\n"); r.append('\n');
/** * Verify the integrity of the object. * * @param id * identity of the object to be checked. * @param type * the type of the object. * @param data * raw content of the object. * @throws org.eclipse.jgit.errors.CorruptObjectException * @since 4.9 */ protected void verifySafeObject(final AnyObjectId id, final int type, final byte[] data) throws CorruptObjectException { if (objCheck != null) { try { objCheck.check(id, type, data); } catch (CorruptObjectException e) { if (e.getErrorType() != null) { throw e; } throw new CorruptObjectException( MessageFormat.format(JGitText.get().invalidObject, Constants.typeString(type), id.name(), e.getMessage()), e); } } }
throw new TransportException(MessageFormat.format( JGitText.get().transportExceptionInvalid, Constants.typeString(type), id.name(), e.getMessage()));
new ObjectChecker().checkTree(raw); } catch (CorruptObjectException error) { r.append("*** ERROR: ").append(error.getMessage()).append("\n"); r.append('\n');
new ObjectChecker().checkTree(raw); } catch (CorruptObjectException error) { r.append("*** ERROR: ").append(error.getMessage()).append("\n"); r.append('\n');
/** * Verify the integrity of the object. * * @param id * identity of the object to be checked. * @param type * the type of the object. * @param data * raw content of the object. * @throws org.eclipse.jgit.errors.CorruptObjectException * @since 4.9 */ protected void verifySafeObject(final AnyObjectId id, final int type, final byte[] data) throws CorruptObjectException { if (objCheck != null) { try { objCheck.check(id, type, data); } catch (CorruptObjectException e) { if (e.getErrorType() != null) { throw e; } throw new CorruptObjectException( MessageFormat.format(JGitText.get().invalidObject, Constants.typeString(type), id.name(), e.getMessage()), e); } } }
Constants.typeString(type), readCurs.abbreviate(id, 10).name(), e.getMessage()), e);
e.getMessage(), ServletUtils.identify(rp.getRepository()))); consumeRequestBody(req);
throw new TransportException(MessageFormat.format( JGitText.get().transportExceptionInvalid, Constants.typeString(type), id.name(), e.getMessage()));
throw new TransportException(MessageFormat.format( JGitText.get().transportExceptionInvalid, Constants.typeString(type), id.name(), e.getMessage()));