|
|
@ -602,11 +602,12 @@ public class PreviewTablePane extends BasicPane { |
|
|
|
|
|
|
|
|
|
|
|
/** |
|
|
|
/** |
|
|
|
* 校验下是否为JNDI连接且禁用该功能,若是显示禁用信息提示 |
|
|
|
* 校验下是否为JNDI连接且禁用该功能,若是显示禁用信息提示 |
|
|
|
|
|
|
|
* |
|
|
|
* @param connection |
|
|
|
* @param connection |
|
|
|
*/ |
|
|
|
*/ |
|
|
|
private void validateJndiDisabled(Connection connection) throws SecurityRestrictionException { |
|
|
|
private void validateJndiDisabled(Connection connection) throws SecurityRestrictionException { |
|
|
|
if(connection instanceof NameDatabaseConnection && ((NameDatabaseConnection) connection).getConnection() instanceof JNDIDatabaseConnection) { |
|
|
|
if (connection instanceof NameDatabaseConnection && ((NameDatabaseConnection) connection).getConnection() instanceof JNDIDatabaseConnection) { |
|
|
|
if(SecurityConfig.getInstance().isDisableJNDI()) { |
|
|
|
if (SecurityConfig.getInstance().isDisableJNDI()) { |
|
|
|
throw new SecurityRestrictionException(Toolkit.i18nText("Fine-Design_Basic_Database_Connection_JNDI_Disabled")); |
|
|
|
throw new SecurityRestrictionException(Toolkit.i18nText("Fine-Design_Basic_Database_Connection_JNDI_Disabled")); |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|