Skip to content

Commit

Permalink
Allow plugin releases of up to 50Mb.
Browse files Browse the repository at this point in the history
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
pledbrook committed May 14, 2012
1 parent 0e74224 commit 46907de
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 8 deletions.
Expand Up @@ -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
}

}
Expand Down
7 changes: 2 additions & 5 deletions grails-app/domain/org/grails/plugin/PendingRelease.groovy
Expand Up @@ -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
Expand Down

0 comments on commit 46907de

Please sign in to comment.