Details
-
Bug
-
Status: New
-
Minor
-
Resolution: Unresolved
-
None
-
None
-
None
Description
The column PM_HIVE_PARAMS.domain_id is not the same as the column PM_HIVE_DATA.domain_id ...
It should be PM_HIVE_PARAMS.domain_name, so that it links to PM_HIVE_DATA.domain_name.
This bug creates a problem when using global parameters in the class ServiceHandler.java, where domainId is referenced to the DomainName.
(Or another solution is to change the reference of domainId to the real domain_id instead of the domain_name...)
{code}
public String execute() throws I2B2Exception{
...
while (it.hasNext()) {
...
domainId = cType.getDomainName();
}
...
try {
...
//Get any remaining params from the environment
for( it=pmDb.getEnvironmentData(domainId).iterator();it.hasNext();){
HiveParamData hivedata =(HiveParamData)it.next();
params.put(hivedata.getName(), hivedata.getValue());
}
...
}
...
}
It should be PM_HIVE_PARAMS.domain_name, so that it links to PM_HIVE_DATA.domain_name.
This bug creates a problem when using global parameters in the class ServiceHandler.java, where domainId is referenced to the DomainName.
(Or another solution is to change the reference of domainId to the real domain_id instead of the domain_name...)
{code}
public String execute() throws I2B2Exception{
...
while (it.hasNext()) {
...
domainId = cType.getDomainName();
}
...
try {
...
//Get any remaining params from the environment
for( it=pmDb.getEnvironmentData(domainId).iterator();it.hasNext();){
HiveParamData hivedata =(HiveParamData)it.next();
params.put(hivedata.getName(), hivedata.getValue());
}
...
}
...
}
Adding a related bug:
In the latest i2b2 1.7.04 release, there is a bug in edu.harvard.i2b2.pm.delegate.ServicesHandler.java line 268.
> if (!cType.getDomainName().equalsIgnoreCase(rmt.getDomain().toUpperCase()))
It should compare the domain ids, not the domain name to the domain id.
The workaround is to set your domain_name to be the same as the domain_id in PM_HIVE_DATA.