Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.

Bug 956346

Summary: Hibernate4 javadoc must be installed to versioned directory with unversioned symlink
Product: [JBoss] JBoss Enterprise Web Server 2 Reporter: David Walluck <dwalluck>
Component: unspecifiedAssignee: Dave Stahl <dstahl>
Status: CLOSED WONTFIX QA Contact: Michal Haško <mhasko>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: unspecifiedCC: jclere, jdoyle, majoshi, mhusnain, myarboro, pcheung, pslavice, tkirby, weli
Target Milestone: ER03   
Target Release: 2.1.0   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
As part of productization, aggregate javadocs are installed into a naming scheme similar to <literal>"_javadocdir"/%"name"-%"namedversion"</literal>, where <literal>%"name"</literal> is the package name and <literal>%"namedversion"</literal> is the full productized version (this is not the same as the RPM <literal>%"version"</literal>). Subsequently, an unversioned symbolic link is added. The hibernate4 javadoc currently uses an unversioned directory, which does not match packages. As a result, wildcards used in the file exacerbate this problem.
Story Points: ---
Clone Of: Environment:
Last Closed: 2014-08-08 08:07:06 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 David Walluck 2013-04-24 18:26:45 UTC
The current productization policy is to install aggregate javadocs into %{_javadocdir}/%{name}-%{namedversion}, where %{name} is usually the package name and %{namedversion} is the full productized version (usually this is NOT equal to the RPM %{version}). Then, an unversioned symlink to this directory is added. It's currently using an unversioned directory, which doesn't match other packages.

Also, the use of wildcards in the file list may exacerbate this problem. When you do something like 

%files
%_javadocdir/*

it is not immediately apparent what directories are going to be included, so spotting a bug in the files is more difficult.

Version-Release number of selected component: hibernate4-4.2.0-4.Final_redhat_1.ep6.el6.

Comment 1 Permaine Cheung 2013-04-24 18:31:56 UTC
The affected component is hibernate, but as we currently do not have a hibernate component, we've put it under unspecified for now, I have asked John to create that for us and will move this to the appropriate component when it is created.

Assigning to Dave.

Comment 4 Dave Stahl 2014-06-18 12:44:39 UTC
Fix in included in the hibernate upgrade.

Comment 6 Libor Fuka 2014-06-19 06:49:07 UTC
Checked in EWS 2.1.0-ER3 and its not correct i think.
We have these directory structure in hibernate-dist.zip:
hibernate-release-4.2.13.Final-redhat-1/documentation/javadocs/...

Comment 7 Dave Stahl 2014-06-23 19:22:51 UTC
(In reply to Libor Fuka from comment #6)
> Checked in EWS 2.1.0-ER3 and its not correct i think.
> We have these directory structure in hibernate-dist.zip:
> hibernate-release-4.2.13.Final-redhat-1/documentation/javadocs/...

I was under the impression that this bug was referring to the javadoc directory installed by the RPM rather than what is contained in the zip. 
ie. /usr/share/javadoc/hibernate4 -> hibernate-4.2.13.Final-redhat-1

Comment 8 David Walluck 2014-06-23 19:41:53 UTC
(In reply to Dave Stahl from comment #7)
> I was under the impression that this bug was referring to the javadoc
> directory installed by the RPM rather than what is contained in the zip. 
> ie. /usr/share/javadoc/hibernate4 -> hibernate-4.2.13.Final-redhat-1

Correct. This bug is RPM-only.

Comment 10 Michal Haško 2014-08-08 08:07:06 UTC
hibernate4-javadoc-eap6 subpackage is dropped in 2.1.0.

Comment 11 Misha H. Ali 2014-08-09 05:59:25 UTC
I'm assuming we don't want to document this in the Release Notes so I'm removing the flag.