Permalink
Browse files

Allow plugin releases of up to 50Mb.

The size constraint on plugin zips for the PendingRelease domain class had been updated, but there was also a command object with the same set of constraints that hadn't been updated: PublishPluginCommand. The command object now imports the constraints from PendingRelease so we don't have to update them in two places.
  • Loading branch information...
1 parent 0e74224 commit 46907de14b63193c9a822ad06cad3804a8cca2fa @pledbrook pledbrook committed May 14, 2012
@@ -233,11 +233,10 @@ class PublishPluginCommand {
byte[] xml
static constraints = {
+ importFrom PendingRelease
+
plugin blank:false
version blank:false
- zip nullable:false, size:0..10000000
- pom nullable:false, size:0..500000
- xml nullable:false, size:0..500000
}
}
@@ -11,12 +11,9 @@ class PendingRelease {
byte[] pom
byte[] xml
- static mapping = {
- pluginName blank:false
- pluginVersion blank:false
- }
-
static constraints = {
+ pluginName blank: false
+ pluginVersion blank: false
zip size:0..50000000 // ~50mb
pom size:0..500000 // 500kb
xml size:0..500000 // 500kb

0 comments on commit 46907de

Please sign in to comment.