GoogleCloudPlatform / gradle-appengine-plugin

Gradle plugin that provides tasks for uploading, running and managing Google App Engine projects
Apache License 2.0
236 stars 60 forks source link

appengineRun runs local server with a security manager? #259

Open derekpeircesc opened 8 years ago

derekpeircesc commented 8 years ago

When I ran my project with Maven, all of the integration tests worked fine.

I switched things over to Gradle and tried using this plugin. However, all of my integration tests now fail, because the local server gets a java.lang.SecurityException: Unable to create temporary file. This indicates that the local server was run with a security manager in place.

If so, how do I control or disable that security manager? Otherwise, any idea why a SecurityException would appear anyway? Thanks!

ludoch commented 8 years ago

Your project is with GAE Flex or Standard (i.e what do you have in appengine-web.xml) ?

On Thu, Aug 11, 2016 at 3:31 PM, derekpeircesc notifications@github.com wrote:

When I ran my project with Maven, all of the integration tests worked fine.

I switched things over to Gradle and tried using this plugin. However, all of my integration tests now fail, because the local server gets a java.lang.SecurityException: Unable to create temporary file. This indicates that the local server was run with a security manager in place.

If so, how do I control or disable that security manager? Otherwise, any idea why a SecurityException would appear anyway? Thanks!

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/GoogleCloudPlatform/gradle-appengine-plugin/issues/259, or mute the thread https://github.com/notifications/unsubscribe-auth/AAE4zaMR0AI-FacvsHp0elxDYpWiW_eQks5qe6KygaJpZM4Jinnv .

derekpeircesc commented 8 years ago

The relevant parts of appengine-web.xml:

<env>flex</env>
<beta-settings>
     <setting name="use_custom_vms" value = "false"/>
     <setting name="enable_app_engine_apis" value="true"/>
</beta-settings>