From e38ec39dfec740cbb582f64a6266d2847e1300a6 Mon Sep 17 00:00:00 2001 From: Jacques Le Roux Date: Mon, 21 Mar 2016 20:17:59 +0000 Subject: [PATCH] This partially reverts r1735569 to simplify and have less commented out parts. Fixes "Comment out RMI related code because of the Java deserialization issue" - https://issues.apache.org/jira/browse/OFBIZ-6942 We decided to comment out as less as possible because once, in the start and both properties; the rmi part is off and the related test services are off there is no RMI related danger left (test services are not a danger but would fail during tests run). It's then easier for users who need RMI in their projects to have only to uncomment those and not digg everywhere. [CVE-2016-2170] The infamous Java serialization vulnerability git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1736083 13f79535-47bb-0310-9956-ffa450edef68 --- framework/base/config/ofbiz-containers.xml | 5 +- framework/base/ofbiz-component.xml | 6 +-- framework/service/ofbiz-component.xml | 11 ++--- .../src/org/ofbiz/base/start/start.properties | 7 ++- specialpurpose/pos/config/xpos.properties | 49 +++++++++---------- 5 files changed, 35 insertions(+), 43 deletions(-) diff --git a/framework/base/config/ofbiz-containers.xml b/framework/base/config/ofbiz-containers.xml index 7bdab7f6eb..291b0bc2ca 100644 --- a/framework/base/config/ofbiz-containers.xml +++ b/framework/base/config/ofbiz-containers.xml @@ -21,11 +21,8 @@ under the License. - - - + diff --git a/framework/base/ofbiz-component.xml b/framework/base/ofbiz-component.xml index e33be15763..62d4cf28c8 100644 --- a/framework/base/ofbiz-component.xml +++ b/framework/base/ofbiz-component.xml @@ -33,13 +33,11 @@ under the License. - - + diff --git a/framework/service/ofbiz-component.xml b/framework/service/ofbiz-component.xml index e539c7ff9f..9e657f6224 100644 --- a/framework/service/ofbiz-component.xml +++ b/framework/service/ofbiz-component.xml @@ -44,17 +44,12 @@ under the License. - - - + - - + ++#ofbiz.start.loader1.loaders=main,rmi ++ofbiz.start.loader1.loaders=main + # -- Enable the shutdown hook #ofbiz.enable.hook=true diff --git a/specialpurpose/pos/config/xpos.properties b/specialpurpose/pos/config/xpos.properties index 6596f6a23b..5d00e55cef 100644 --- a/specialpurpose/pos/config/xpos.properties +++ b/specialpurpose/pos/config/xpos.properties @@ -1,35 +1,34 @@ ############################################################################### -# Licensed to the Apache Software Foundation (ASF) under one -# or more contributor license agreements. See the NOTICE file -# distributed with this work for additional information -# regarding copyright ownership. The ASF licenses this file -# to you under the Apache License, Version 2.0 (the -# "License"); you may not use this file except in compliance -# with the License. You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, -# software distributed under the License is distributed on an -# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY -# KIND, either express or implied. See the License for the -# specific language governing permissions and limitations -# under the License. +# Licensed to the Apache Software Foundation (ASF) under one +# or more contributor license agreements. See the NOTICE file +# distributed with this work for additional information +# regarding copyright ownership. The ASF licenses this file +# to you under the Apache License, Version 2.0 (the +# "License"); you may not use this file except in compliance +# with the License. You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, +# software distributed under the License is distributed on an +# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +# KIND, either express or implied. See the License for the +# specific language governing permissions and limitations +# under the License. ############################################################################### # -# By default the screen is 1024x768 wide. If you want to use another screen size, -# you must create a new directory under specialpurpose/pos/screens, like the 800x600. -# You must also set the 3 related parameters (StartClass, ClientWidth, ClientHeight) accordingly. +# Dynamically modified by OFBiz Framework (org.ofbiz.base.util : UtilProperties.setPropertyValue) +# The comments have been removed, you may still find them on the OFBiz repository... # - -StartPackage=org.ofbiz.pos -StartClass=default/pospanel -LogLevel=0 -StyleFile=posstyles.xml +#Mon Mar 21 21:15:53 CET 2016 CenterWin=true ClientHeight=768 +Language=XuiLabels_fr ClientWidth=1024 -Language=XuiLabels +StartClass=default/pospanel Title=OFBiz POS +StyleFile=posstyles.xml UseWindow=false UseFrames=false +LogLevel=0 +StartPackage=org.ofbiz.pos