Bug 1859090

Summary: alternatives of javaws.x86_64 is not properly reset
Product: [Fedora] Fedora Reporter: Robin Lee <robinlee.sysu>
Component: icedtea-webAssignee: jiri vanek <jvanek>
Status: CLOSED ERRATA QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 32CC: dbhole, jvanek, moschleg, omajid
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: icedtea-web-2.0.0-pre.0.3.alpha13.patched1.fc32.3 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2020-07-30 18:55:22 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:

Description Robin Lee 2020-07-21 09:07:36 UTC
Description of problem:
After update from icedtea-web-1.8.2-3.fc31.x86_64 to icedtea-web-2.0.0-pre.0.3.alpha13.patched1.fc32.x86_64, /usr/bin/javaws became a broken link which finally pointing to /usr/bin/javaws.itweb, which is removed in the new package.

$ sudo alternatives --display javaws.x86_64
javaws.x86_64 - status is auto.
 link currently points to /usr/bin/javaws.itweb
/usr/bin/javaws.itweb - family java-1.8.0-openjdk.x86_64 priority 18000
 slave ControlPanel: /usr/bin/itweb-settings.itweb
 slave itweb-settings: /usr/bin/itweb-settings.itweb
 slave policyeditor: /usr/bin/policyeditor.itweb
 slave ControlPanel.1.gz: /usr/share/man/man1/itweb-settings.1.gz
 slave javaws.1.gz: /usr/share/man/man1/javaws.itweb.1.gz
/usr/libexec/icedtea-web/javaws - family %{preffered_java}.x86_64 priority 18000
 slave ControlPanel: /usr/libexec/icedtea-web/itweb-settings
 slave itweb-settings: /usr/libexec/icedtea-web/itweb-settings
 slave policyeditor: /usr/libexec/icedtea-web/policyeditor
 slave ControlPanel.1.gz: /usr/share/man/man1/itweb-settings.1.gz
 slave javaws.1.gz: /usr/share/man/man1/javaws.itweb.1.gz
Current `best' version is /usr/bin/javaws.itweb.

Version-Release number of selected component (if applicable):
icedtea-web-2.0.0-pre.0.3.alpha13.patched1.fc32.x86_64

How reproducible:
(Not retried)

Steps to Reproduce:
1. install icedtea-web-1.8.2-3.fc31.x86_64
2. update to icedtea-web-2.0.0-pre.0.3.alpha13.patched1.fc32.x86_64
3.

Actual results:
/usr/bin/javaws is broken.

Expected results:
/usr/bin/javaws finally points to /usr/libexec/icedtea-web/javaws

Additional info:

Comment 1 jiri vanek 2020-07-21 11:59:08 UTC
Crap. I would swear I had verified that. Will elaborate.

Comment 2 jiri vanek 2020-07-21 12:01:16 UTC
I guess it is not reprodcuible in fresh install?

Comment 3 jiri vanek 2020-07-21 12:24:39 UTC
Hmm. I have not reprodcued it.
During update, i correctly lost javaws.itweb and gained javaws.

Comment 4 jiri vanek 2020-07-21 13:13:14 UTC
Ok. found it. It looks like the alternatives were wrongly cleared for years. There is removal of javaws  instead of javaws/arch

Comment 5 jiri vanek 2020-07-21 14:09:21 UTC
And another issue is nexpanded %{preffered_java} macro. Thanx for the report!

Comment 6 jiri vanek 2020-07-21 15:51:09 UTC
and last is the new target path not updating correctly... Update shoudl be in updates soon.

Comment 7 Fedora Update System 2020-07-21 16:00:48 UTC
FEDORA-2020-809419f597 has been submitted as an update to Fedora 32. https://bodhi.fedoraproject.org/updates/FEDORA-2020-809419f597

Comment 8 Fedora Update System 2020-07-22 01:16:32 UTC
FEDORA-2020-809419f597 has been pushed to the Fedora 32 testing repository.
In short time you'll be able to install the update with the following command:
`sudo dnf upgrade --enablerepo=updates-testing --advisory=FEDORA-2020-809419f597`
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2020-809419f597

See also https://fedoraproject.org/wiki/QA:Updates_Testing for more information on how to test updates.

Comment 9 Fedora Update System 2020-07-30 18:55:22 UTC
FEDORA-2020-809419f597 has been pushed to the Fedora 32 stable repository.
If problem still persists, please make note of it in this bug report.

Comment 10 Mark Schlegel 2021-05-20 15:31:16 UTC
 %{preffered_java} macro

It would be nice to spell that correctly.  Maybe the macro is correctly spelled "preferred" in the macro but the scriptlet is using "preffered"