Bug 1075875
Summary: | remote API client version is 'undefined' when client is packaged as executable JAR | ||||||
---|---|---|---|---|---|---|---|
Product: | [JBoss] JBoss Operations Network | Reporter: | Jeeva Kandasamy <jkandasa> | ||||
Component: | CLI | Assignee: | Libor Zoubek <lzoubek> | ||||
Status: | CLOSED CURRENTRELEASE | QA Contact: | Mike Foley <mfoley> | ||||
Severity: | high | Docs Contact: | |||||
Priority: | unspecified | ||||||
Version: | JON 3.2.1 | CC: | ahovsepy, loleary, lzoubek, myarboro, theute | ||||
Target Milestone: | DR03 | Keywords: | Triaged | ||||
Target Release: | JON 3.2.2 | ||||||
Hardware: | Unspecified | ||||||
OS: | Unspecified | ||||||
Whiteboard: | |||||||
Fixed In Version: | Doc Type: | Bug Fix | |||||
Doc Text: | Story Points: | --- | |||||
Clone Of: | Environment: | ||||||
Last Closed: | 2014-07-29 00:17:06 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: | |||||||
Attachments: |
|
Description
Jeeva Kandasamy
2014-03-13 05:44:54 UTC
My suggestion is (per Larry's comment on Bug 1038364) not to move client version to any property file, but instead fix this issue the following way: 1. if rhq-client.version-check=false - do not even try to detect the version and log any message - this is exactly what this property says : "NO version check, please" 2. introduce 'rhq.client.version' system property, that you can set or pass to your client that would take precedence over what could be found in manifest (if it exists). For users consuming our classes above way, we could recommend keeping our client version in their own property file or code - because it's their responsibility to know which version they use. If they would have used the recommended way (consuming our JARs, not just classes) they wouldn't have needed this. I guess 1. is enough to fix this BZ, since there will be no log message about undefined version in case rhq-client.version-check=false in master commit 33c0cdd238dae97b63ad84fb7b9d89b716facbf0 Author: Libor Zoubek <lzoubek> Date: Fri Apr 25 13:24:28 2014 +0200 [BZ 1075875] remote API client version is 'undefined' when client is packaged as executable JAR if rhq-client.version-check=false - do not even try to detect the version and log any message - this is exactly what this property says : "NO version check, please" introduced 'rhq.client.version' system property, that you can set or pass to your client that would take precedence over what could be found in manifest (if it exists). cherry-picked commit 019b3324dc71defb830aa8e99f43d29c4884b495 Author: Libor Zoubek <lzoubek> Date: Fri Apr 25 13:24:28 2014 +0200 [BZ 1075875] remote API client version is 'undefined' when client is packaged as executable JAR if rhq-client.version-check=false - do not even try to detect the version and log any message - this is exactly what this property says : "NO version check, please" introduced 'rhq.client.version' system property, that you can set or pass to your client that would take precedence over what could be found in manifest (if it exists). (cherry picked from commit 33c0cdd238dae97b63ad84fb7b9d89b716facbf0) Signed-off-by: Libor Zoubek <lzoubek> Moving to DR03 as didn't get included for earlier payload. Moving to ON_QA as available for test in latest build: http://jon01.mw.lab.eng.bos.redhat.com:8042/dist/release/jon/3.2.2.GA/6-28-2014/ for a jar with "Extract required libraries into generated JAR" -> exception is visible unless rhq.client.version-check=false is provided for a jar with "Package required libraries into generated JAR" -> exception is not visible (my example is with external lib) screen-shot attached Created attachment 916186 [details]
version-check-cli
This has been verified and released in Red Hat JBoss Operations Network 3.2 Update 02 (3.2.2) available from the Red Hat Customer Portal[1]. [1]: https://access.redhat.com/jbossnetwork/restricted/softwareDetail.html?softwareId=31783 |