Finally I’ve released my first Grails plugin: ClamAV Grails plugin. It allows to easily use the Open Source antivirus ClamAV from Grails through a service and a validator.
The freeOfVirus validator can be used like any other constraints:
class Foo
{
...
byte[] myBinaryData
...
static constraints = {
myBinaryData(freeOfVirus: true)
}
}
Simple, isn’t it?
Guillaume Laforge said,
March 10, 2008 at 4:33 pm
Cool idea to check uploaded files!
Robin said,
March 10, 2008 at 6:32 pm
Very nice! Also, adding a viruscheck service for arbitrary checks would be really great
Marc Guillemot said,
March 11, 2008 at 8:14 am
Robin,
what do you mean with “for arbitrary checks”? Virus validation on File on InputStream make sense and are on the TODO list. I can imagine that validation on String could be usefull too, but for other types?
Robin said,
March 11, 2008 at 5:33 pm
Sorry, wrongs words from me
, it should read “arbitrary files”.
And when I look at the page over at grails.org I see you already support this. Sorry for all the fuss