Bug 851021 - Symlinks inside bundles do not work
Summary: Symlinks inside bundles do not work
Keywords:
Status: NEW
Alias: None
Product: RHQ Project
Classification: Other
Component: Provisioning
Version: 4.4
Hardware: All
OS: Linux
unspecified
medium
Target Milestone: ---
: ---
Assignee: Nobody
QA Contact:
URL:
Whiteboard:
Depends On:
Blocks: 864250
TreeView+ depends on / blocked
 
Reported: 2012-08-23 06:06 UTC by James Livingston
Modified: 2022-03-31 04:27 UTC (History)
3 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
: 864250 (view as bug list)
Environment:
Last Closed:
Embargoed:


Attachments (Terms of Use)

Description James Livingston 2012-08-23 06:06:12 UTC
As per http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=6550137, java.util.zip doesn't support symlinks. Since RHQ uses those classes for handling the contents of bundles, it does not support symlinks inside bundles.


A use case for when you may want to do this is installing the EAP 5.1.2 RHEL native components via a bundle. As of 5.1.2, the zip from the customer portal contains symlinks to some OS-provides shared libraries, rather than copies of them.


This is not likely to be easy to fix, without moving to a different archive-handling libraru, and I'm not certain ant supports symlinks in zip files either.

Comment 1 James Livingston 2012-08-23 06:29:48 UTC
A work-around is to put the symlinks (and optionally other files) into a tarball and extract them using the ant script:
  <untar src="abc.tar.gz" compression="gzip" dest="somedirectory"/>


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