A patch from Francis ANDRE "unify admin port and key setting: single point of definition in start.properties" https://issues.apache.org/jira/browse/OFBIZ-4793
If someone wants to change the admin password or port, he would have to change currently many files (-- build.xml, various .bat and .sh --). In order to avoid this error-prone pratice, I suggest to centralize the definition of the admin kay and port at 2 single points: the framework/start/src/org/ofbiz/base/start/start.properties and the framework/start/src/org/ofbiz/base/start/jetty.properties jleroux: in config.java I also changed String adminPortStr = getProp(props, "ofbiz.admin.port", "0"); adminKey = getProp(props, "ofbiz.admin.key", "NA"); to String adminPortStr = getProp(props, "ofbiz.admin.port", "10523"); adminKey = getProp(props, "ofbiz.admin.key", "so3du5kasd5dn"); git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1324989 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
@@ -461,7 +461,7 @@ public class GenericEntity extends Observable implements Map<String, Object>, Lo
|
||||
}
|
||||
|
||||
boolean isNullString = false;
|
||||
if ("null".equals(value) || "[null-field]".equals(value)) {
|
||||
if ("null".equals(value) || "[null-field]".equals(value)) { // keep [null-field] here but not sure it' used now
|
||||
// count this as a null too, but only for numbers and stuff, not for Strings
|
||||
isNullString = true;
|
||||
}
|
||||
@@ -1079,7 +1079,12 @@ public class GenericEntity extends Observable implements Map<String, Object>, Lo
|
||||
element.setAttribute(name, value);
|
||||
}
|
||||
} else {
|
||||
element.setAttribute(name, GenericEntity.NULL_FIELD.toString());
|
||||
element.setAttribute(name, "null");
|
||||
element.setAttribute("xsi:nil", "true");
|
||||
// I tried to put the schema in the envelope header (in createAndSendSOAPResponse)
|
||||
// resEnv.declareNamespace("http://www.w3.org/2001/XMLSchema-instance", null);
|
||||
// But it gets prefixed and that does not work. So adding in each instance
|
||||
element.setAttribute("xmlns:xsi", "http://www.w3.org/2001/XMLSchema-instance");
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user