Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 333007 - Absolute references when mirroring SVN update site
Summary: Absolute references when mirroring SVN update site
Status: CLOSED MOVED
Alias: None
Product: Subversive
Classification: Technology
Component: Update Site (show other bugs)
Version: 0.7   Edit
Hardware: PC Mac OS X - Carbon (unsup.)
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: Igor Burilo CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-12-21 07:22 EST by Jacek Pospychala CLA
Modified: 2023-02-13 10:55 EST (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 Jacek Pospychala CLA 2010-12-21 07:22:34 EST
Hi,

I'm mirroring SVN update site to some local machine to speed up the builds of my product which includes SVN.
I'm using ant p2.mirror task. It works fine, except that mirrored repository metadata contains absolute references to artifacts in your repository. So as a result, I have my own local copy of everything, but when trying to use it, your repository is used. This is obviously not what I want, because it slows our build :-(

I'm mirroring several other projects repositories and this happens only with SVN, so I think this is an issue with SVN repo.

Looking into your repository metadata I see that content.xml contains references to other repositories:

 <references size='4'>
    <repository uri='http://download.eclipse.org/technology/subversive/0.7/update-site/' url='http://download.eclipse.org/technology/subversive/0.7/update-site/' type='0' options='0'/>
    <repository uri='http://download.eclipse.org/tools/gef/updates/releases' url='http://download.eclipse.org/tools/gef/updates/releases' type='1' options='1'/>
    <repository uri='http://download.eclipse.org/tools/gef/updates/releases' url='http://download.eclipse.org/tools/gef/updates/releases' type='0' options='1'/>
    <repository uri='http://download.eclipse.org/technology/subversive/0.7/update-site/' url='http://download.eclipse.org/technology/subversive/0.7/update-site/' type='1' options='0'/>
  </references>

I believe that due to this entry, p2.mirror task translates artifacts URLs to absolute (using 'http://download.eclipse.org/technology/subversive/0.7/update-site/' as reference).

Do you know why this "references" entry is included in your repo metadata?
Do you think it'd be possible to remove the first entry from the references list? (It seems to refer to itself, so should not be needed)

My another question is, if your releng project is available somewhere, so I could have a look at the commands you're using to create your repo.

Thanks in advance
Comment 1 Jacek Pospychala CLA 2010-12-21 07:25:55 EST
btw. this started happening few weeks ago. I guess when you were working on your repositories.
Comment 2 Eclipse Webmaster CLA 2023-02-13 10:55:42 EST
This issue has been migrated to https://gitlab.eclipse.org/eclipse/subversive/subversive/-/issues/78.