Pawlowsky, Marc wrote: > The import statement seems to be disallowed in swap for groovy actions. > The workflow bellow will not import with an error of: > Workflow GroovyBugImport 1 > http://xxxx/webswamp/resources/ui/skins/common/images/critical_16.png > Scriptaction: importAction contains errors: Found illegal import > statement in script. > > > Is there a way to get the import statement to work?
Hi, import statements in groovy script are forbidden by the workflow verifier at the moment. It's a problem that the groovy scripts have direct access to the java vm, and thus could do everything inside swamp bypassing the users access rights that uploaded the workflow. Maybe we should make it a config option whether to run groovy scripts in a "safe" mode or not. For now you can turn the check of by commenting out line 524+525 of de.suse.swamp.core.util.WorkflowVerifier Greetings -- Thomas Schmidt (tschmidt [at] suse.de) SUSE Linux Products GmbH :: Research & Development :: Internal Tools "Computers are useless. They can only give you answers.", Pablo Picasso ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys -- and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV _______________________________________________ swamp-devel mailing list swamp-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/swamp-devel http://swamp.sf.net