[JBoss JIRA] (AS7-4041) JDBDDriverAdd should not require driver-name param
by Brian Stansberry (JIRA)
Brian Stansberry created AS7-4041:
-------------------------------------
Summary: JDBDDriverAdd should not require driver-name param
Key: AS7-4041
URL: https://issues.jboss.org/browse/AS7-4041
Project: Application Server 7
Issue Type: Bug
Components: Domain Management, JCA
Reporter: Brian Stansberry
Assignee: Stefano Maestri
Fix For: 7.1.2.Final
The name of the a driver should be the value of the last PathElement in the driver resource's PathAddress. User's shouldn't have to specify a "driver-name" parameter.
To maintain API compatibility, the attribute should be retained. But if users provide the parameter to "add" and it doesn't match the resource address, an OFE should be thrown. If they don't provide a driver-name param, the value from the resource address should be stored.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.jboss.org/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira
14 years, 1 month
[JBoss JIRA] (SECURITY-648) Files are not being closed properly in some places
by Stuart Douglas (JIRA)
Stuart Douglas created SECURITY-648:
---------------------------------------
Summary: Files are not being closed properly in some places
Key: SECURITY-648
URL: https://issues.jboss.org/browse/SECURITY-648
Project: PicketBox (JBoss Security and Identity Management)
Issue Type: Bug
Security Level: Public (Everyone can see)
Reporter: Stuart Douglas
Assignee: Anil Saldhana
org.picketbox.plugins.vault.PicketBoxSecurityVault#init opens two FileInputStreams and does not appear to close them in a finally block
org.jboss.security.plugins.TmpFilePassword#toCharArray closes the file but does not use a finally block, so if there is an exception the file can leak
org.picketbox.util.KeyStoreUtil#getKeyStore also open a FileInputStream and does not close it (in both versions of the function)
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.jboss.org/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira
14 years, 1 month
[JBoss JIRA] (AS7-4020) add-jvm-option operation does not work
by Bernard Tison (JIRA)
Bernard Tison created AS7-4020:
----------------------------------
Summary: add-jvm-option operation does not work
Key: AS7-4020
URL: https://issues.jboss.org/browse/AS7-4020
Project: Application Server 7
Issue Type: Bug
Affects Versions: 7.1.0.Final
Reporter: Bernard Tison
setup: domain started in domain mode with ./domain.sh
>From CLI:
[domain@localhost:9999 /] /host=master/server-config=server-one/jvm=default:add
{
"outcome" => "success",
"result" => undefined,
"server-groups" => undefined
}
[domain@localhost:9999 /] /host=master/server-config=server-one/jvm=default:add-jvm-option(jvm-option="-Xrunjdwp:transport=dt_socket,address=8787,server=y,suspend=n")
'jvm-option' is not found among the supported properties: [type]
But when I try to use type:
[domain@localhost:9999 /] /host=master/server-config=server-one/jvm=default:add-jvm-option(type="-Xrunjdwp:transport=dt_socket,address=8787,server=y,suspend=n")
{
"outcome" => "failed",
"failure-description" => {"host-failure-descriptions" => [("master" => "JBAS014746: jvm-option may not be null")]},
"rolled-back" => true
}
[domain@localhost:9999 /]
Solution:
In the class org.jboss.as.controller.descriptions.common.JVMDescriptions.java lines 185-187, replace
node.get(REQUEST_PROPERTIES, TYPE, TYPE).set(ModelType.STRING);
node.get(REQUEST_PROPERTIES, TYPE, DESCRIPTION).set(bundle.getString("jvm.option"));
node.get(REQUEST_PROPERTIES, TYPE, REQUIRED).set(true);
with
node.get(REQUEST_PROPERTIES, JVM_OPTION, TYPE).set(ModelType.STRING);
node.get(REQUEST_PROPERTIES, JVM_OPTION, DESCRIPTION).set(bundle.getString("jvm.option"));
node.get(REQUEST_PROPERTIES, JVM_OPTION, REQUIRED).set(true);
Note: if this helps, assign to me and I will issue a pull request.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.jboss.org/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira
14 years, 1 month