Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 230097 - [reconciler] Wrong base directory when parent of install dir contains plugins
Summary: [reconciler] Wrong base directory when parent of install dir contains plugins
Status: CLOSED WONTFIX
Alias: None
Product: Equinox
Classification: Eclipse Project
Component: p2 (show other bugs)
Version: 3.4   Edit
Hardware: PC Windows XP
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: P2 Inbox CLA
QA Contact:
URL:
Whiteboard: stalebug
Keywords:
: 230215 (view as bug list)
Depends on:
Blocks:
 
Reported: 2008-05-03 23:08 EDT by John Arthorne CLA
Modified: 2019-05-12 08:14 EDT (History)
3 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description John Arthorne CLA 2008-05-03 23:08:21 EDT
Install the platform into a directory that also contains a directory called plugins/. For example:

/tmp
   /plugins
   /eclipse
      /plugins
      /features

In this scenario, the wrong plugins directory is monitored by the dropins reconciler, and any extra content in the real plugins/ or dropins/ directory is monitored instead.

The problem starts in PlatformXmlListener, which does the following:

if (siteURL.startsWith("file:") && siteURL.endsWith("/eclipse/")) 
	siteURL = siteURL.substring(0, siteURL.length() - 8);

I.e., it sets the base directory to be the parent of the install directory (/tmp in the setup above). Then, in ExtensionLocationMetadataRepository constructor it calls ELMR#getBaseDirectory, which has the following logic:

 - If the base directory has a subdirectory called "plugins", then use that as the base
 - Otherwise add "eclipse" to the path and try again.

Thus in most cases it ends up with the correct base directory. However, if the parent of the install directory contains a plugins/ directory, it ends up with the wrong base directory.
Comment 1 John Arthorne CLA 2008-05-05 10:30:25 EDT
*** Bug 230215 has been marked as a duplicate of this bug. ***
Comment 2 Eclipse Genie CLA 2019-05-12 08:14:10 EDT
This bug hasn't had any activity in quite some time. Maybe the problem got resolved, was a duplicate of something else, or became less pressing for some reason - or maybe it's still relevant but just hasn't been looked at yet.

If you have further information on the current state of the bug, please add it. The information can be, for example, that the problem still occurs, that you still want the feature, that more information is needed, or that the bug is (for whatever reason) no longer relevant.

--
The automated Eclipse Genie.