Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 327421 - Can't get rid of old repositories
Summary: Can't get rid of old repositories
Status: CLOSED WONTFIX
Alias: None
Product: Equinox
Classification: Eclipse Project
Component: p2 (show other bugs)
Version: unspecified   Edit
Hardware: PC Windows 7
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: P2 Inbox CLA
QA Contact:
URL:
Whiteboard: stalebug
Keywords:
Depends on:
Blocks:
 
Reported: 2010-10-11 04:52 EDT by Ib Nielsen CLA
Modified: 2019-09-24 13:55 EDT (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Ib Nielsen CLA 2010-10-11 04:52:40 EDT
Build Identifier: 20100917-0705

I have a p2.inf file that I export with a RCP. The p2.inf update file looks like this : instructions.configure=\
  addRepository(type:0,location:http${#58}//127.0.0.1:7788/repository);\
  addRepository(type:1,location:http${#58}//127.0.0.1:7788/repository);

Next I want to change the repository and my new p2.inf file looks like this :

instructions.configure=\
  addRepository(type:0,location:file${#58}///c:/ibn/updatetest/repository);\
  addRepository(type:1,location:file${#58}///c:/ibn/updatetest/repository);

I now use the file system instead of a http server to host my repository. I actualle works. The problem is that P2 still tries to contact the old repository located on the http server and if the http server has stopped it takes forever for P2 to find that out when my application checks for updates.

I have tried to remove the old repository location with : 

instructions.configure=\
  addRepository(type:0,location:file${#58}///c:/ibn/updatetest/repository);\
  addRepository(type:1,location:file${#58}///c:/ibn/updatetest/repository);\
  removeRepository(type:0,location:http${#58}//127.0.0.1:7788/repository);\
  removeRepository(type:1,location:http${#58}//127.0.0.1:7788/repository);

but it does not seem to work.



Reproducible: Always

Steps to Reproduce:
1. make a p2.inf file that points to a http server thats hosts the repository
2. export the product
3. change p2.inf to point to a file based repository instead 
4. export the product again
5. now start the RCP but make sure nothing is listening on the port from step 1
6. it takes forever for P2 to find out that it can't use the http server
Comment 1 Eclipse Genie CLA 2019-01-20 13:50:29 EST
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.
Comment 2 Lars Vogel CLA 2019-09-24 13:55:58 EDT
This bug was marked as stalebug a while ago. Marking as worksforme.

If this report is still relevant for the current release, please reopen and remove the stalebug whiteboard tag.