Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.
For bugs related to Red Hat Enterprise Linux 5 product line. The current stable release is 5.10. For Red Hat Enterprise Linux 6 and above, please visit Red Hat JIRA https://issues.redhat.com/secure/CreateIssue!default.jspa?pid=12332745 to report new issues.

Bug 659710

Summary: IBM Java5 files modified & Missing
Product: Red Hat Enterprise Linux 5 Reporter: IBM Bug Proxy <bugproxy>
Component: java-1.5.0-ibmAssignee: jiri vanek <jvanek>
Status: CLOSED ERRATA QA Contact: BaseOS QE - Apps <qe-baseos-apps>
Severity: urgent Docs Contact:
Priority: urgent    
Version: 5.7CC: jjarvis, patrickm, rbiba
Target Milestone: rc   
Target Release: ---   
Hardware: other   
OS: All   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2011-01-20 16:22:40 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description IBM Bug Proxy 2010-12-03 14:41:25 UTC
---Problem Description---
java-1.5.0-ibm-1.5.0.12.2  files  ROOT/bin/HtmlConverter and ROOT/bin/java-rmi.cgi are 
modified



---uname output---
x86

Machine Type = x86 

---Debugger---
A debugger is not configured

---Steps to Reproduce---
 Java compliance Test

---Java Component Data--- 
Java Version: java version "1.5.0" Java(TM) 2 Runtime Environment, Standard Edition (build
pxi32devifx-20101008a (SR12 FP2 ))
 -Note: Problem still occurs with the JIT compiler disabled


*Server architecture(s) (please list all effected) (x86/POWER6/Z/etc.): ppc
*Server type (9117-MMA/HS20/s390/etc.):
*General component (desktop/kernel/base OS/dev tools/etc.): NA
*Other components involved (ixgbe/java/emulex/etc.): Java
*Does the server have the latest GA firmware? Yes
*Has the problem been shown to occur on more than one system? Yes
*Is a tested patch available? NA
*If yes to the above, has it been approved upstream? 
*What is the latest official Red Hat build on which this bug has been seen? RHEL 6 
Snapshot 2


On ppc64 ROOT/bin/java-rmi.cgi  is missing

On S390  ROOT/bin/java-rmi.cgi   is modified

on ppc java-1.5.0-ibm-1.5.0.12.2  files  ROOT/bin/HtmlConverter and ROOT/bin/java-rmi.cgi 
are modified

Comment 2 Radek Bíba 2010-12-07 08:37:30 UTC
(In reply to comment #0)
...
> On ppc64 ROOT/bin/java-rmi.cgi  is missing

Not true:
# rpm -qf /usr/lib/jvm/java-1.5.0-ibm-1.5.0.12.2.ppc64/bin/java-rmi.cgi
java-1.5.0-ibm-devel-1.5.0.12.2-1jpp.1.el5.ppc64
 
> On S390  ROOT/bin/java-rmi.cgi   is modified

Of course! And the difference is:

-PATH=/usr/local/java/bin:$PATH
+PATH=/usr/lib/jvm/jre-1.5.0-ibm/bin

This change is made intentionally in the spec file to make the script work.
 
> on ppc java-1.5.0-ibm-1.5.0.12.2  files  ROOT/bin/HtmlConverter and
> ROOT/bin/java-rmi.cgi 
> are modified

Ditto for java-rpm.cgi here (it's modified on every architecture). As for HtmlConverter, it's also modified during packaging, although in this case the modification is incorrect and shouldn't be done.

Comment 3 RHEL Program Management 2010-12-07 14:17:20 UTC
This request was evaluated by Red Hat Product Management for
inclusion in the current release of Red Hat Enterprise Linux.
Because the affected component is not scheduled to be updated in the
current release, Red Hat is unfortunately unable to address this
request at this time. Red Hat invites you to ask your support
representative to propose this request, if appropriate and relevant,
in the next release of Red Hat Enterprise Linux.

Comment 5 IBM Bug Proxy 2010-12-07 14:55:40 UTC
------- Comment From deepakraj.com 2010-12-07 08:16 EDT-------
RedHat any update on these issues.

Comment 7 Patrick Macdonald 2010-12-07 14:59:42 UTC
Moving this out 1 minor, we'll fix this with the next IBM drop.

Comment 8 John Jarvis 2010-12-07 15:25:44 UTC
Yes, it has been provided but apparently there is a mirroring issue on the IBM side.  Posting it again here:
================================
(In reply to comment #0)
...
> On ppc64 ROOT/bin/java-rmi.cgi  is missing

Not true:
# rpm -qf /usr/lib/jvm/java-1.5.0-ibm-1.5.0.12.2.ppc64/bin/java-rmi.cgi
java-1.5.0-ibm-devel-1.5.0.12.2-1jpp.1.el5.ppc64

> On S390  ROOT/bin/java-rmi.cgi   is modified

Of course! And the difference is:

-PATH=/usr/local/java/bin:$PATH
+PATH=/usr/lib/jvm/jre-1.5.0-ibm/bin

This change is made intentionally in the spec file to make the script work.

> on ppc java-1.5.0-ibm-1.5.0.12.2  files  ROOT/bin/HtmlConverter and
> ROOT/bin/java-rmi.cgi 
> are modified

Ditto for java-rpm.cgi here (it's modified on every architecture). As for
HtmlConverter, it's also modified during packaging, although in this case the
modification is incorrect and shouldn't be done.

Comment 9 jiri vanek 2010-12-09 10:10:14 UTC
added 
%define sdklibdir       %{_jvmdir}/%{sdklnk}/lib

Comment 10 jiri vanek 2010-12-09 11:39:29 UTC
Just to sumarize
ROOT/bin/HtmlConverter is written to be modified  under rhel 5 for ibm java 5. 
This change is wrong, by its content, but this is to be easily fixed by fix from comment 9
Then this script work better then without modification (and much better then without fixing it when it was not working at all)- but modification is not necessary. 
Also This  can be found in java 5 for rhel 4 and 6

And java-rmi.cgi must be patched, and is patched correctly. Ibm agree with it?

Comment 11 IBM Bug Proxy 2010-12-14 17:03:10 UTC
------- Comment From lnx1138.ibm.com 2010-12-14 11:52 EDT-------
(In reply to comment #13)
> Just to sumarize
> ROOT/bin/HtmlConverter is written to be modified  under rhel 5 for ibm java 5.
> This change is wrong, by its content, but this is to be easily fixed by fix
> from comment 9
> Then this script work better then without modification (and much better then
> without fixing it when it was not working at all)- but modification is not
> necessary.

OK. Just to confirm, this means that the HtmlConverter script will be restored to the original content and size the same as the way it was fixed for RHEL 6 in
https://bugzilla.redhat.com/show_bug.cgi?id=599587 , correct?

Comment 12 jiri vanek 2010-12-14 17:13:10 UTC
No. It means that "new" html converter will be fixed so it will work properly.

Comment 13 IBM Bug Proxy 2010-12-20 10:00:42 UTC
------- Comment From deepakraj.com 2010-12-20 04:57 EDT-------
(In reply to comment #14)
> (In reply to comment #13)
> > Just to sumarize
> > ROOT/bin/HtmlConverter is written to be modified  under rhel 5 for ibm java 5.
> > This change is wrong, by its content, but this is to be easily fixed by fix
> > from comment 9
> > Then this script work better then without modification (and much better then
> > without fixing it when it was not working at all)- but modification is not
> > necessary.
> > Also This  can be found in java 5 for rhel 4 and 6
> >
> > And java-rmi.cgi must be patched, and is patched correctly. Ibm agree with it?
> Stephanie/ Deepak
> Can you pls confirm?
> Cheers
> Prem

(In reply to comment #13)
> Just to sumarize
> ROOT/bin/HtmlConverter is written to be modified  under rhel 5 for ibm java 5.
> This change is wrong, by its content, but this is to be easily fixed by fix
> from comment 9
> Then this script work better then without modification (and much better then
> without fixing it when it was not working at all)- but modification is not
> necessary.
> Also This  can be found in java 5 for rhel 4 and 6
> And java-rmi.cgi must be patched, and is patched correctly. Ibm agree with it?

Based on this changelog shared by you

>This should be enough:

>%ifarch ppc64 s390x x86_64
>%define    sdklnk        java-%{javaver}-%{origin}.%{_arch}
>%else
>%define sdklnk          java-%{javaver}-%{origin}
>%endif
>%define sdklibdir       %{_jvmdir}/%{sdklnk}/lib
...
>%define jrebindir       %{_jvmdir}/%{jrelnk}/bin

...

>%ifarch x86_64 %{x86} ppc
># fix up (create new) HtmlConverter, sdkdir replaced by sdklibdir,and
>all packages with plugin affected
>cat > bin/HtmlConverter << EOF
>%{jrebindir}/java -jar %{sdklibdir}/htmlconverter.jar $*
>EOF
>%endif

>If isn't feel free to ask.

JTC has agreed that if RedHat has made the same changes as mentioned above, then it is fine with us.

Comment 14 RHEL Program Management 2011-01-11 19:56:46 UTC
This request was evaluated by Red Hat Product Management for
inclusion in the current release of Red Hat Enterprise Linux.
Because the affected component is not scheduled to be updated in the
current release, Red Hat is unfortunately unable to address this
request at this time. Red Hat invites you to ask your support
representative to propose this request, if appropriate and relevant,
in the next release of Red Hat Enterprise Linux.

Comment 15 RHEL Program Management 2011-01-11 22:40:30 UTC
This request was erroneously denied for the current release of
Red Hat Enterprise Linux.  The error has been fixed and this
request has been re-proposed for the current release.

Comment 19 errata-xmlrpc 2011-01-20 16:22:40 UTC
An advisory has been issued which should help the problem
described in this bug report. This report is therefore being
closed with a resolution of ERRATA. For more information
on therefore solution and/or where to find the updated files,
please follow the link below. You may reopen this bug report
if the solution does not work for you.

http://rhn.redhat.com/errata/RHSA-2011-0169.html