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:
@@ -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">
|
||||
|
||||
Reference in New Issue
Block a user