Bug 15831 - Searching for updates to a nested feature returns hits for sub-features)
Summary: Searching for updates to a nested feature returns hits for sub-features)
Status: RESOLVED FIXED
Alias: None
Product: Platform
Classification: Eclipse Project
Component: Update (deprecated - use Eclipse>Equinox>p2) (show other bugs)
Version: 2.0   Edit
Hardware: PC Windows 2000
: P1 normal (vote)
Target Milestone: ---   Edit
Assignee: Dejan Glozic CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2002-05-12 16:50 EDT by Vlad Klicnik CLA
Modified: 2002-05-17 15:01 EDT (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Vlad Klicnik CLA 2002-05-12 16:50:55 EDT
Using 20020510 build I have created a nested feature structure as follows:

===== feature.xml for the SDK ========================

<?xml version="1.0" encoding="UTF-8"?>
<feature
	  id="org.eclipse.sdk"
      label="%featureName"
      version="1.9.0"
      provider-name="%providerName"
      primary="true"
      application="org.eclipse.ui.workbench">

  <url>
    <update url="http://sonialnx.ott.oti.com/downloads/hubba/NevadaTestSite/"/>
  </url>
          
  <includes id="org.eclipse.platform.win32" version="1.9.0"/>       
  <includes id="org.eclipse.platform.doc.user" version="1.9.0"/>       
  <includes id="org.eclipse.platform.doc.isv" version="1.9.0"/>

  <includes id="org.eclipse.jdt" version="1.9.0"/>       
  <includes id="org.eclipse.jdt.doc.user" version="1.9.0"/>       
  <includes id="org.eclipse.jdt.doc.isv" version="1.9.0"/> 
      
  <includes id="org.eclipse.pde" version="1.9.0"/>       
  <includes id="org.eclipse.pde.doc.user" version="1.9.0"/>  

  <plugin id="org.eclipse.sdk" version="1.9.0"/>
</feature>

======= featur.xml for the win platform ===============

<?xml version="1.0" encoding="UTF-8"?>
<feature
	  id="org.eclipse.platform.win32"
      label="%featureName"
      version="1.9.0"
      provider-name="%providerName"
      primary="false">
      
  <includes id="org.eclipse.platform" version="1.9.0"/>

  <plugin id="org.eclipse.platform.win32" version="1.9.0"/>
  <plugin id="org.eclipse.swt.win32" version="1.9.0" fragment="true"/>
  <plugin id="org.eclipse.core.resources.win32" version="1.9.0" 
fragment="true"/>
  <plugin id="org.eclipse.ui.win32" version="1.9.0" fragment="true"/>
  <plugin id="org.eclipse.update.core.win32" version="1.9.0" fragment="true"/>
</feature>


I start with 20020510 + plus updatecore.jar and updateui.jar from HEAD + the 2 
modified feature files.

Eclipse starts, features are picked up, shown nested in the view.

I clicked on "Available Updates" .... after a while I get search results. The 
"Updates" view shows the site with one feature below it (the SDK) ... this 
seems correct. But the "Preview" view shows 20 hits listing all versions of all 
features (even the ones that are nested into the SDK)
Comment 1 Vlad Klicnik CLA 2002-05-12 16:59:24 EDT
Actually, the "Updates" view shown only one version of the SDK feature, even 
though there are 2 found on the site. Both versions appear in the "Preview" 
view. The version shown in the "Updates" view is the older (ie. not the most 
recent) of the 2 available versions. This does not seem intuitive.
Comment 2 Vlad Klicnik CLA 2002-05-12 17:19:20 EDT
Sorry, I was wrong .... after the search the "Updates" view shows the older 
version of the "Eclipse Platform" (not the SDK) even though I had 1 top-level 
feature configured (ie. the SDK feature as above)

So to summarize, I only had 1 configured "top level" feature .... Eclipse SDK.

Updates view shows
   Available Updates
      http://.../NevadaTestSite/
         Eclipse Platform 1.9.0.200205100914

Preview shows all versions of all features (top level and nested)
Comment 3 Dejan Glozic CLA 2002-05-17 15:01:07 EDT
There were problems is search query that I beleive are fixed now.