Bug 1289467 - [GSS](6.4.z) jboss-cli.sh ignoring invalid attribute when used in batch mode
Summary: [GSS](6.4.z) jboss-cli.sh ignoring invalid attribute when used in batch mode
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: JBoss Enterprise Application Platform 6
Classification: JBoss
Component: CLI
Version: 6.4.4
Hardware: Unspecified
OS: Unspecified
unspecified
medium
Target Milestone: CR1
: EAP 6.4.12
Assignee: Chao Wang
QA Contact: Petr Kremensky
URL:
Whiteboard: eap6412-proposed
Depends On:
Blocks: eap6412-payload
TreeView+ depends on / blocked
 
Reported: 2015-12-08 08:46 UTC by Abhijit humbe
Modified: 2019-09-12 09:30 UTC (History)
9 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed: 2017-01-17 13:10:56 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Issue Tracker WFLY-5829 0 Major Resolved jboss-cli.sh ignoring invalid attribute when used in batch mode 2018-04-13 07:53:50 UTC

Description Abhijit humbe 2015-12-08 08:46:34 UTC
Description of problem:
CLI did not throw any error message and just ignored the invalid attribute while using in batch mode.If we use same CLI command in non-batch mode it throws exception. 


In following CLI command we are using invalid attribute "blocking-timeout-millis", valid attribute is "blocking-timeout-wait-millis" 

Batch mode:
==========
[standalone@localhost:9999 /] batch 
[standalone@localhost:9999 / #] /subsystem=datasources/data-source=TestDS:add(connection-url="jdbc:h2:mem:test;DB_CLOSE_DELAY=-1;DB_CLOSE_ON_EXIT=FALSE",driver-name=h2,jndi-name=java:/jboss/datasources/TestDS,blocking-timeout-millis=1000)
[standalone@localhost:9999 / #] run-batch 
The batch executed successfully
[standalone@localhost:9999 /] 


Standalone command:
==================
[standalone@localhost:9999 /] /subsystem=datasources/data-source=TestDS:add(connection-url="jdbc:h2:mem:test;DB_CLOSE_DELAY=-1;DB_CLOSE_ON_EXIT=FALSE",driver-name=h2,jndi-name=java:/jboss/datasources/TestDS,blocking-timeout-millis=1000)
'blocking-timeout-millis' is not found among the supported properties: [share-prepared-statements, driver-class, prepared-statements-cache-size, spy, password, max-pool-size, set-tx-query-timeout, jndi-name, url-delimiter, enabled, connectable, blocking-timeout-wait-millis, statistics-enabled, pool-use-strict-min, validate-on-match, transaction-isolation, jta, valid-connection-checker-class-name, allocation-retry-wait-millis, exception-sorter-properties, background-validation-millis, track-statements, use-fast-fail, flush-strategy, stale-connection-checker-class-name, exception-sorter-class-name, background-validation, check-valid-connection-sql, reauth-plugin-class-name, allow-multiple-users, url-selector-strategy-class-name, user-name, use-ccm, reauth-plugin-properties, driver-name, stale-connection-checker-properties, datasource-class, idle-timeout-minutes, query-timeout, use-java-context, valid-connection-checker-properties, min-pool-size, allocation-retry, security-domain, new-connection-sql, connection-url, use-try-lock, pool-prefill]




Actual results:
jboss-cli.sh ignoring invalid attribute when used in batch mode

Expected results:
jboss-cli.sh should throw exception while using invalid attribute in batch mode

Comment 2 Mike McCune 2016-03-28 22:24:40 UTC
This bug was accidentally moved from POST to MODIFIED via an error in automation, please see mmccune with any questions

Comment 4 Jiří Bílek 2016-11-10 15:33:26 UTC
Verified EAP 6.4.12.CP.CR1

Comment 5 Petr Penicka 2017-01-17 13:10:56 UTC
Retroactively bulk-closing issues from released EAP 6.4 cummulative patches.


Note You need to log in before you can comment on or make changes to this bug.