ClamAV Grails plugin

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?

Advertisements

5 Comments

  1. March 10, 2008 at 4:33 pm

    Cool idea to check uploaded files!

  2. Robin said,

    March 10, 2008 at 6:32 pm

    Very nice! Also, adding a viruscheck service for arbitrary checks would be really great πŸ™‚

  3. 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?

  4. 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 πŸ™‚

  5. Bejoy said,

    December 20, 2017 at 12:37 pm

    Installed the App and Changed the port
    Trying to run the grails app but receiving the following error

    ERROR :-

    groovy.lang.MissingMethodException: No signature of method: org.springframework.beans.factory.support.GenericBeanDefinition.setSingleton() is applicable for argument types: (java.lang.Boolean) values: [true]
    Possible solutions: isSingleton(), setSynthetic(boolean)
    at ClamavGrailsPlugin$_closure1_closure7.doCall(ClamavGrailsPlugin.groovy:23)
    at grails.spring.BeanBuilder.invokeBeanDefiningMethod(BeanBuilder.java:703)
    at grails.spring.BeanBuilder.invokeMethod(BeanBuilder.java:561)
    at ClamavGrailsPlugin$_closure1.doCall(ClamavGrailsPlugin.groovy:21)
    at grails.spring.BeanBuilder.invokeBeanDefiningClosure(BeanBuilder.java:754)
    at grails.spring.BeanBuilder.beans(BeanBuilder.java:584)
    at grails.spring.BeanBuilder.invokeMethod(BeanBuilder.java:527)
    at java.util.concurrent.FutureTask.run(FutureTask.java:266)
    at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
    at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
    at java.lang.Thread.run(Thread.java:748)
    Error |
    Forked Grails VM exited with errorJava HotSpot(TM) 64-Bit Server VM warning: ignoring option MaxPermSize=256m; support was removed in 8.0


Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: