Bug 1289467

Summary: [GSS](6.4.z) jboss-cli.sh ignoring invalid attribute when used in batch mode
Product: [JBoss] JBoss Enterprise Application Platform 6 Reporter: Abhijit humbe <abhumbe>
Component: CLIAssignee: Chao Wang <chaowan>
Status: CLOSED CURRENTRELEASE QA Contact: Petr Kremensky <pkremens>
Severity: medium Docs Contact:
Priority: unspecified    
Version: 6.4.4CC: bbaranow, bmaxwell, brian.stansberry, chaowan, jbilek, jboss-set, jtruhlar, msochure, ppalaga
Target Milestone: CR1   
Target Release: EAP 6.4.12   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard: eap6412-proposed
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2017-01-17 13:10:56 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On:    
Bug Blocks: 1375585    

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.