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 1710928 - JVM net.properties file overwritten on package upgrade
Summary: JVM net.properties file overwritten on package upgrade
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Enterprise Linux 7
Classification: Red Hat
Component: java-1.8.0-openjdk
Version: 7.6
Hardware: Unspecified
OS: Unspecified
medium
medium
Target Milestone: rc
: ---
Assignee: Andrew John Hughes
QA Contact: OpenJDK QA
URL:
Whiteboard:
Depends On:
Blocks: 1725255
TreeView+ depends on / blocked
 
Reported: 2019-05-16 15:10 UTC by Andrew Mike
Modified: 2023-09-07 20:02 UTC (History)
11 users (show)

Fixed In Version: java-1.8.0-openjdk-1.8.0.232.b09-3.el7
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2020-03-31 19:51:33 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Product Errata RHBA-2020:1071 0 None None None 2020-03-31 19:52:02 UTC

Description Andrew Mike 2019-05-16 15:10:34 UTC
Description of problem: When upgrading the java-1.8.0-headless package, the file /usr/lib/jvm/jre/lib/net.properties is overwritten, even though it has network configuration information.

Version-Release number of selected component (if applicable):
Tested with upgrading from java-1.8.0-openjdk-headless-1.8.0.201.b09-2.el7_6.x86_64 to java-1.8.0-openjdk-headless-1.8.0.212.b04-0.el7_6.x86_64.

How reproducible: Consistent.


Steps to Reproduce:
1. Install java-1.8.0-openjdk-headless-1.8.0.201.b09-2.el7_6.x86_64 package.
2. Edit /usr/lib/jvm/jre/lib/net.properties to set java.net.useSystemProxies=true.
3. Upgrade java-1.8.0-openjdk-headless package.

Actual results:
Value of java.net.useSystemProxies in /usr/lib/jvm/jre/lib/net.properties is reset to false (the system default).

Expected results:
Value of java.net.useSystemProxies in /usr/lib/jvm/jre/lib/net.properties is preserved across package upgrades.

Additional info:

Comment 2 Andrew Mike 2019-05-16 15:12:40 UTC
A pull request for this issue exists in Fedora: https://src.fedoraproject.org/rpms/java-1.8.0-openjdk/pull-request/72

Comment 4 Andrew John Hughes 2019-08-15 21:20:48 UTC
Trivial fix that just needs bringing over from Fedora.

Comment 5 jiri vanek 2019-08-19 11:18:13 UTC
Just FYI - it is already in cjc: http://pkgs.devel.redhat.com/cgit/rpms/copy-jdk-configs/tree/copy_jdk_configs.lua?h=rhel-7.7#n11

Comment 13 errata-xmlrpc 2020-03-31 19:51:33 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, 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/RHBA-2020:1071


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