Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.
RHEL Engineering is moving the tracking of its product development work on RHEL 6 through RHEL 9 to Red Hat Jira (issues.redhat.com). If you're a Red Hat customer, please continue to file support cases via the Red Hat customer portal. If you're not, please head to the "RHEL project" in Red Hat Jira and file new tickets here. Individual Bugzilla bugs in the statuses "NEW", "ASSIGNED", and "POST" are being migrated throughout September 2023. Bugs of Red Hat partners with an assigned Engineering Partner Manager (EPM) are migrated in late September as per pre-agreed dates. Bugs against components "kernel", "kernel-rt", and "kpatch" are only migrated if still in "NEW" or "ASSIGNED". If you cannot log in to RH Jira, please consult article #7032570. That failing, please send an e-mail to the RH Jira admins at rh-issues@redhat.com to troubleshoot your issue as a user management inquiry. The email creates a ServiceNow ticket with Red Hat. Individual Bugzilla bugs that are migrated will be moved to status "CLOSED", resolution "MIGRATED", and set with "MigratedToJIRA" in "Keywords". The link to the successor Jira issue will be found under "Links", have a little "two-footprint" icon next to it, and direct you to the "RHEL project" in Red Hat Jira (issue links are of type "https://issues.redhat.com/browse/RHEL-XXXX", where "X" is a digit). This same link will be available in a blue banner at the top of the page informing you that that bug has been migrated.

Bug 1933072

Summary: JDK Mission control About windows shows incorrect information for the version.
Product: Red Hat Enterprise Linux 8 Reporter: Scott Froberg <sfroberg>
Component: jmcAssignee: Alex Macdonald <almacdon>
Status: CLOSED ERRATA QA Contact: OpenJDK QA <java-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 8.4CC: almacdon, jkang, jvanek, lmiksik
Target Milestone: rcKeywords: Triaged
Target Release: ---Flags: pm-rhel: mirror+
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: jmc-8.0.0-8.module+el8.4.0+10229+75da8244 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of:
: 1935340 (view as bug list) Environment:
Last Closed: 2021-05-18 16:24:08 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: 1935340    
Attachments:
Description Flags
Screen shot of the error observed.
none
Screenshot of proposed fix none

Description Scott Froberg 2021-02-25 15:54:42 UTC
Created attachment 1759338 [details]
Screen shot of the error observed.

Description of problem:
The About menu for JMC does not show the correct version information.

There are references to 'mockbuild' and a Change id: ${buildNumber}

After a fresh installation of JDK Mission Control 8.0.0 for RHEL 8.4 go open JMC and select Help>About. The about window will open and details on the version should be visible.

Version-Release number of selected component (if applicable):
Use this repo to install JMC
http://download-node-02.eng.bos.redhat.com/rhel-8/nightly/RHEL-8/latest-RHEL-8/compose/AppStream/x86_64/os/


How reproducible:
Install jmc on RHEL 8.4.
Open jmc.
Select file menu help>about visually confirm version information.

Comment 5 Alex Macdonald 2021-03-02 17:21:18 UTC
A scratch build like that would only work for non-modular packages, right? The "stream-rhel8-rhel-8.4.0" release target isn't valid here, and trying to build only the package itself would be missing the modular dependencies. Wouldn't I need to commit to jmc and then empty commit the modular repo and then scratch build from there?

fwiw, the change I'm looking at right now is:

-%mvn_build -j -- -Dmaven.test.failure.ignore=true
+%mvn_build -j -- -Dmaven.test.failure.ignore=true -DbuildId=rhel -DbuildNumber=%{revhash} -Dbuild.date=%{revdate}

In the jmc spec we didn't set the build information when running the maven build like we do in Fedora or rhscl.

Comment 6 Jie Kang 2021-03-02 17:29:20 UTC
(In reply to Alex Macdonald from comment #5)
> A scratch build like that would only work for non-modular packages, right?
> The "stream-rhel8-rhel-8.4.0" release target isn't valid here, and trying to
> build only the package itself would be missing the modular dependencies.
> Wouldn't I need to commit to jmc and then empty commit the modular repo and
> then scratch build from there?
> 
> fwiw, the change I'm looking at right now is:
> 
> -%mvn_build -j -- -Dmaven.test.failure.ignore=true
> +%mvn_build -j -- -Dmaven.test.failure.ignore=true -DbuildId=rhel
> -DbuildNumber=%{revhash} -Dbuild.date=%{revdate}
> 
> In the jmc spec we didn't set the build information when running the maven
> build like we do in Fedora or rhscl.


Ah right, modules. It slipped my mind for some reason. So for modules you can push the changes to the development branches and run a scratch build there via

$ rhpkg module-build --scratch --buildrequires platform:el8.4.0

The development branches for packages are 'stream-rhel8' and the development branch for the module is 'rhel8'. Those branches should not have any push restrictions.

Comment 7 Alex Macdonald 2021-03-03 18:51:24 UTC
Created attachment 1760472 [details]
Screenshot of proposed fix

Comment 18 errata-xmlrpc 2021-05-18 16:24:08 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory (jmc:rhel8 bug fix and enhancement update), and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

https://access.redhat.com/errata/RHEA-2021:1955