Temporary workaround which should be used by anyone responsible for OFBiz security until OFBIZ-6568 is fixed. To get the contrast-rO0.jar see https://github.com/Contrast-Security-OSS/contrast-rO0

In r1717058 I missed to add start-batch-secure and both-secure

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1717180 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Jacques Le Roux
2015-11-30 05:23:29 +00:00
parent a42222ad33
commit 8d14919821
+21 -1
View File
@@ -594,7 +594,7 @@ under the License.
</java>
</target>
<target name="start-secure"
description="Start OFBiz same than start but pre-loading the contrast-rO0 lib (from OFBiz roo dir) to secure OFBiz from the deserialization issue">
description="Same than start but pre-loading the contrast-rO0 lib (from OFBiz roo dir) to secure OFBiz from the deserialization issue">
<java jar="ofbiz.jar" fork="true">
<jvmarg value="${memory.initial.param}"/>
<jvmarg value="${memory.max.param}"/>
@@ -612,6 +612,16 @@ under the License.
<arg value="-portoffset=${portoffset}"/>
</java>
</target>
<target name="start-batch-secure"
description="Same than start-batch but pre-loading the contrast-rO0 lib (from OFBiz roo dir) to secure OFBiz from the deserialization issue">
<java jar="ofbiz.jar" fork="true" spawn="true">
<jvmarg value="${memory.initial.param}"/>
<jvmarg value="${memory.max.param}"/>
<jvmarg value="-javaagent:${ofbiz.home.dir}/contrast-rO0.jar"/>
<arg value="start-batch"/>
<arg value="-portoffset=${portoffset}"/>
</java>
</target>
<target name="start-debug"
description="Start OFBiz in debugging mode. It uses the 8091 port by default. Use -Dportoffset=portNumber to shift all ports with the portNumber value.">
<java jar="ofbiz.jar" fork="true">
@@ -643,6 +653,16 @@ under the License.
<arg value="-portoffset=${portoffset}"/>
</java>
</target>
<target name="start-both-secure"
description="Same than start-pos but pre-loading the contrast-rO0 lib (from OFBiz roo dir) to secure OFBiz from the deserialization issue">
<java jar="ofbiz.jar" fork="true">
<jvmarg value="${memory.initial.param}"/>
<jvmarg value="-javaagent:${ofbiz.home.dir}/contrast-rO0.jar"/>
<jvmarg value="${memory.max.param}"/>
<arg value="both"/>
<arg value="-portoffset=${portoffset}"/>
</java>
</target>
<target name="stop"
description="Stop OFBiz. Use -Dportoffset=portNumber to shift all ports with the portNumber value.">
<java jar="ofbiz.jar" fork="true">