]> source.dussan.org Git - jgit.git/commit
UploadPack: Add a PreUploadHook to monitor and control behavior 46/2746/7
authorShawn O. Pearce <spearce@spearce.org>
Wed, 16 Mar 2011 20:46:53 +0000 (13:46 -0700)
committerShawn O. Pearce <spearce@spearce.org>
Fri, 1 Apr 2011 21:40:33 +0000 (17:40 -0400)
commit64b524e3ca3d1f66edaa49eda2d8863ddca779b5
tree0990a54d8582e37a844c0a9fce020ac4db476e56
parentaf3562f7f70a9017f6f90d266f2b2a6fc3b361ad
UploadPack: Add a PreUploadHook to monitor and control behavior

Embedding applications can use this hook to watch actions within
UploadPack and possibly reject them. This could be useful to prevent
clones of a large repository from this server, or to stop abusive
negotiation rounds that offer thousands of objects in a single batch.

Change-Id: Id96f1885ac4d61f22c80b6418fff54184b7348ba
Signed-off-by: Shawn O. Pearce <spearce@spearce.org>
org.eclipse.jgit.http.server/src/org/eclipse/jgit/http/server/SmartServiceInfoRefs.java
org.eclipse.jgit.http.server/src/org/eclipse/jgit/http/server/UploadPackServlet.java
org.eclipse.jgit/src/org/eclipse/jgit/transport/PreUploadHook.java [new file with mode: 0644]
org.eclipse.jgit/src/org/eclipse/jgit/transport/UploadPack.java
org.eclipse.jgit/src/org/eclipse/jgit/transport/UploadPackMayNotContinueException.java [new file with mode: 0644]