Program: 122099
Project: 122099
Buggy source:
protected void initConnectionParametersWithContext(IElement element,IContext context){
  if (connParameters == null) {
    connParameters=new ConnectionParameters();
  }
  Object value=elem.getPropertyValue("String_Node_Str");
  IElementParameter compList=elem.getElementParameterFromField(EParameterFieldType.COMPONENT_LIST);
  if (value != null && (value instanceof Boolean) && ((Boolean)value) && compList != null) {
    if (connectionNode == null) {
      Object compValue=compList.getValue();
      if (compValue != null && !compValue.equals("String_Node_Str")) {
        List<? extends INode> nodes=part.getProcess().getGeneratingNodes();
        for (        INode node : nodes) {
          if (node.getUniqueName().equals(compValue) && (node instanceof INode)) {
            connectionNode=node;
            break;
          }
        }
      }
    }
    if (connectionNode != null) {
      element=connectionNode;
    }
  }
  connParameters.setDbName(getParameterValueWithContext(element,EConnectionParameterName.SID.getName(),context));
  connParameters.setPassword(getParameterValueWithContext(element,EConnectionParameterName.PASSWORD.getName(),context));
  connParameters.setPort(getParameterValueWithContext(element,EConnectionParameterName.PORT.getName(),context));
  connParameters.setSchema(getParameterValueWithContext(element,EConnectionParameterName.SCHEMA.getName(),context));
  connParameters.setHost(getParameterValueWithContext(element,EConnectionParameterName.SERVER_NAME.getName(),context));
  connParameters.setUserName(getParameterValueWithContext(element,EConnectionParameterName.USERNAME.getName(),context));
  connParameters.setDirectory(getParameterValueWithContext(element,EConnectionParameterName.DIRECTORY.getName(),context));
  connParameters.setHttps(Boolean.parseBoolean(getParameterValueWithContext(element,EConnectionParameterName.HTTPS.getName(),context)));
  String url=TalendTextUtils.removeQuotesIfExist(getParameterValueWithContext(element,EConnectionParameterName.URL.getName(),context));
  if (StringUtils.isEmpty(url)) {
    String dbType=connParameters.getDbType();
    if (EDatabaseTypeName.ORACLE_RAC.getDisplayName().equals(dbType))     url=TalendTextUtils.removeQuotesIfExist(getParameterValueWithContext(element,"String_Node_Str" + EConnectionParameterName.URL.getName(),context));
  }
  connParameters.setUrl(url);
  connParameters.setDriverClass(TalendTextUtils.removeQuotesIfExist(getParameterValueWithContext(element,EConnectionParameterName.DRIVER_CLASS.getName(),context)));
  connParameters.setDriverJar(TalendTextUtils.removeQuotesIfExist(getParameterValueWithContext(element,EConnectionParameterName.DRIVER_JAR.getName(),context)));
  final String dbTypeByClassName=ExtractMetaDataUtils.getDbTypeByClassName(connParameters.getDriverClass());
  if (connParameters.getDbType() == null || EDatabaseTypeName.MYSQL.getDisplayName().equals(connParameters.getDbType()) && !EDatabaseTypeName.MYSQL.getProduct().equals(dbTypeByClassName)) {
    if (dbTypeByClassName != null && !"String_Node_Str".equals(dbTypeByClassName)) {
      connParameters.setDbType(dbTypeByClassName);
    }
  }
  if (connParameters.getDbType().equals(EDatabaseTypeName.SQLITE.getXmlName()) || connParameters.getDbType().equals(EDatabaseTypeName.ACCESS.getXmlName()) || connParameters.getDbType().equals(EDatabaseTypeName.FIREBIRD.getXmlName())) {
    connParameters.setFilename(getParameterValueWithContext(element,EConnectionParameterName.FILE.getName(),context));
  }
  connParameters.setJdbcProperties(getParameterValueWithContext(element,EConnectionParameterName.PROPERTIES_STRING.getName(),context));
  connParameters.setDatasource(getParameterValueWithContext(element,EConnectionParameterName.DATASOURCE.getName(),context));
}

Fixed version (ground truth):
protected void initConnectionParametersWithContext(IElement element,IContext context){
  if (connParameters == null) {
    connParameters=new ConnectionParameters();
  }
  Object value=elem.getPropertyValue("String_Node_Str");
  IElementParameter compList=elem.getElementParameterFromField(EParameterFieldType.COMPONENT_LIST);
  if (value != null && (value instanceof Boolean) && ((Boolean)value) && compList != null) {
    if (connectionNode == null) {
      Object compValue=compList.getValue();
      if (compValue != null && !compValue.equals("String_Node_Str")) {
        List<? extends INode> nodes=part.getProcess().getGeneratingNodes();
        for (        INode node : nodes) {
          if (node.getUniqueName().equals(compValue) && (node instanceof INode)) {
            connectionNode=node;
            break;
          }
        }
      }
    }
    if (connectionNode != null) {
      element=connectionNode;
    }
  }
  connParameters.setDbName(getParameterValueWithContext(element,EConnectionParameterName.SID.getName(),context));
  connParameters.setPassword(getParameterValueWithContext(element,EConnectionParameterName.PASSWORD.getName(),context));
  connParameters.setPort(getParameterValueWithContext(element,EConnectionParameterName.PORT.getName(),context));
  connParameters.setSchema(getParameterValueWithContext(element,EConnectionParameterName.SCHEMA.getName(),context));
  connParameters.setHost(getParameterValueWithContext(element,EConnectionParameterName.SERVER_NAME.getName(),context));
  connParameters.setUserName(getParameterValueWithContext(element,EConnectionParameterName.USERNAME.getName(),context));
  connParameters.setDirectory(getParameterValueWithContext(element,EConnectionParameterName.DIRECTORY.getName(),context));
  connParameters.setHttps(Boolean.parseBoolean(getParameterValueWithContext(element,EConnectionParameterName.HTTPS.getName(),context)));
  String url=TalendTextUtils.removeQuotesIfExist(getParameterValueWithContext(element,EConnectionParameterName.URL.getName(),context));
  if (StringUtils.isEmpty(url)) {
    String dbType=connParameters.getDbType();
    if (EDatabaseTypeName.ORACLE_RAC.getDisplayName().equals(dbType)) {
      url=TalendTextUtils.removeQuotesIfExist(getParameterValueWithContext(element,"String_Node_Str" + EConnectionParameterName.URL.getName(),context));
    }
  }
  connParameters.setUrl(url);
  connParameters.setDriverClass(TalendTextUtils.removeQuotesIfExist(getParameterValueWithContext(element,EConnectionParameterName.DRIVER_CLASS.getName(),context)));
  connParameters.setDriverJar(TalendTextUtils.removeQuotesIfExist(getParameterValueWithContext(element,EConnectionParameterName.DRIVER_JAR.getName(),context)));
  final String dbTypeByClassName=ExtractMetaDataUtils.getDbTypeByClassName(connParameters.getDriverClass());
  if (connParameters.getDbType() == null || EDatabaseTypeName.MYSQL.getDisplayName().equals(connParameters.getDbType()) && !EDatabaseTypeName.MYSQL.getProduct().equals(dbTypeByClassName)) {
    if (dbTypeByClassName != null && !"String_Node_Str".equals(dbTypeByClassName)) {
      connParameters.setDbType(dbTypeByClassName);
    }
  }
  if (connParameters.getDbType().equals(EDatabaseTypeName.SQLITE.getXmlName()) || connParameters.getDbType().equals(EDatabaseTypeName.ACCESS.getXmlName()) || connParameters.getDbType().equals(EDatabaseTypeName.FIREBIRD.getXmlName())) {
    connParameters.setFilename(getParameterValueWithContext(element,EConnectionParameterName.FILE.getName(),context));
  }
  connParameters.setJdbcProperties(getParameterValueWithContext(element,EConnectionParameterName.PROPERTIES_STRING.getName(),context));
  connParameters.setDatasource(getParameterValueWithContext(element,EConnectionParameterName.DATASOURCE.getName(),context));
}