Data Loss Prevention

 View Only
  • 1.  issue with Custom plugin script API

    Trusted Advisor
    Posted Aug 07, 2013 08:17 AM

    Hello

     We have an issue with DLP custom plugin library. We have developped a custom plugin script in python which works well in 99% of our
    DLP incident. But when there is lot of recipients or lot of attachment in email message We have following error message :
     
    Aug 5, 2013 5:54:58 AM (SEVERE) Thread: 128 [com.vontu.lookup.script.ExecLauncher.launch] Failed to execute script.
    com.vontu.lookup.script.ScriptLookupException: Cannot run program ""..\Python\python.exe"": CreateProcess error=206, The filename or extension is too long
                    at com.vontu.lookup.script.ExecCommand.execute(ExecCommand.java:82)
                    at com.vontu.lookup.script.ExecLauncher.launch(ExecLauncher.java:114)
                    at com.vontu.lookup.script.ScriptLookup.invokeScript(ScriptLookup.java:94)
                    at com.vontu.lookup.script.ScriptLookup.lookupAttributeValues(ScriptLookup.java:49)
                    at com.vontu.enforce.workflow.attributes.CustomAttributeLookup$1.call(CustomAttributeLookup.java:401)
                    at edu.oswego.cs.dl.util.concurrent.FutureResult$1.run(FutureResult.java:75)
                    at com.vontu.util.concurrent.TimedCallablePool$Worker.run(TimedCallablePool.java:392)


    It really looks like an issue with com.vontu.lookup.script.ExecLauncher.launch method. i did the test with a simple python script which does nothing except a "Hello=world" in order to test if my python script was faulty, but i have same error message.
    I cannot manage this issue in my own script as it is never called by the java method, and support team said they dont support custom script
    (which i can understand but here it is not an issue with custom script but with DLP code which called custom script).

    Does any one of you already had this issue and found a solution or a workaround ?

    regards.

    PS we are using DLP v11.6.2



  • 2.  RE: issue with Custom plugin script API

    Trusted Advisor
    Posted Aug 07, 2013 04:19 PM
      |   view attached

    Stephane,

    I have seen this issue before, I have actually done this before with another customer.  Unfortunately it comes down to the fact that there are too many characters in the string. The java has a character limitation that cannot be modified.

    There is no fix for this and nothing planned for it. This is such an edge case issue with customers that it will be at the bottom of a bug fix.

    Something that you can try is to see what is configured in the Plugin settings. Are you including the group "recepient" in the lookup parameters? You may want to make sure that is unchecked, unless you have some reason that you are looking up some recepient information. This may eliminate the issue.

    Just uncheck the box (picture) and then reload the plugin.

    Hope this makes sense.

    If this solves your questions please marked as solved.

    Ronak



  • 3.  RE: issue with Custom plugin script API

    Trusted Advisor
    Posted Aug 09, 2013 02:04 AM

    hi ronak,

     Unfortunately it is mandatory for me to have recipient and attachment for my plugin (thats also why i have some other post on capability to be more selective in plugin configuration).

     I agree with you it is due to number of attribute and not so easy to correct that in java (except may be avoiding sending attribute with null value, or shorter name for attribute,...). Thats also why it happens only for some email with lot of recipient or attachment.

    So i only need to provide my script to lot of customer in order to have this going up in bug fix list :)

     Regards