Bug 1312593 - Upgrades leave behind excess java.security.rpm* files
Summary: Upgrades leave behind excess java.security.rpm* files
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: Fedora
Classification: Fedora
Component: java-1.8.0-openjdk
Version: 22
Hardware: Unspecified
OS: Unspecified
unspecified
low
Target Milestone: ---
Assignee: Deepak Bhole
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2016-02-27 17:16 UTC by Scott Schmit
Modified: 2016-02-29 08:49 UTC (History)
6 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2016-02-29 08:49:01 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)

Description Scott Schmit 2016-02-27 17:16:59 UTC
Description of problem:
Even though I have never modified this file, it would appear that I have a bunch of java.security.rpm{save,new} files left behind from upgrades over time:
$ find /usr/lib/jvm -name '*.rpm???*'
/usr/lib/jvm/java-1.8.0-openjdk-1.8.0.71-1.b15.fc22.x86_64/jre/lib/security/java.security.rpmnew
/usr/lib/jvm/java-1.8.0-openjdk-1.8.0.71-1.b15.fc22.x86_64/jre/lib/security/java.security.rpmsave
/usr/lib/jvm/java-1.8.0-openjdk-1.8.0.72-1.b15.fc22.x86_64/jre/lib/security/java.security.rpmnew
/usr/lib/jvm/java-1.8.0-openjdk-1.8.0.65-3.b17.fc22.x86_64/jre/lib/security/java.security.rpmnew
/usr/lib/jvm/java-1.8.0-openjdk-1.8.0.65-3.b17.fc22.x86_64/jre/lib/security/java.security.rpmsave
/usr/lib/jvm/java-1.8.0-openjdk-1.8.0.65-14.b17.fc22.x86_64/jre/lib/security/java.security.rpmnew
/usr/lib/jvm/java-1.8.0-openjdk-1.8.0.65-14.b17.fc22.x86_64/jre/lib/security/java.security.rpmsave
/usr/lib/jvm/java-1.8.0-openjdk-1.8.0.65-15.b17.fc22.x86_64/jre/lib/security/java.security.rpmnew
/usr/lib/jvm/java-1.8.0-openjdk-1.8.0.65-15.b17.fc22.x86_64/jre/lib/security/java.security.rpmsave
/usr/lib/jvm/java-1.8.0-openjdk-1.8.0.60-14.b27.fc22.x86_64/jre/lib/security/java.security.rpmnew
/usr/lib/jvm/java-1.8.0-openjdk-1.8.0.60-14.b27.fc22.x86_64/jre/lib/security/java.security.rpmsave

Version-Release number of selected component (if applicable):
java-1.8.0-openjdk-1:1.8.0.71-1.b15.fc22.x86_64 ->
java-1.8.0-openjdk-1:1.8.0.72-1.b15.fc22.x86_64

But based on the symlinks still used, I suspect this is still an issue.

How reproducible:
100%?

Steps to Reproduce:
1. Upgrade java-1.8.0-openjdk from one version to another

Actual results:
See results of find above, as well as this output:
warning: /usr/lib/jvm/java-1.8.0-openjdk-1.8.0.71-1.b15.fc22.x86_64/jre/lib/security/java.security saved as /usr/lib/jvm/java-1.8.0-openjdk-1.8.0.71-1.b15.fc22.x86_64/jre/lib/security/java.security.rpmsave

Expected results:
No extra files littered about in multiple version-specific directories.

Additional info:

Comment 1 jiri vanek 2016-02-29 08:49:01 UTC
Hello. AFAIK this is caused by legacy behaviour, when you had custom modified/or by accident buggy from package (it happened in past)  java.security file. IN such an case the java.security.rpmsave was created, and as untracked file carried over updates. And always left behind (as  it is correct behaviour for *.rpmnew files)

If you delete *latest*  rpmnew  file, it should be not recreated in next update.

Ofocurse feel free to remove al legacy /usr/lib/jvm/java-1.8.0-openjdk-1.8.0.*-*.b*.fc*.x86_64

I'm closinig now as this was intentionally fixed longer ago. 

If you remove latest jre/lib/security/java.security.rpmsave and in next udpate this file will be again recreated, please reopen. (in that case I wil lneed content and md5sum of all java.security* files)

(hm.. I'm hoping all the rpmnew/old fixes went to  f22 too, but should)


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