how does the p2.index exactly work? #2618
Replies: 1 comment 2 replies
-
Regarding the p2.index file, look at this section: https://wiki.eclipse.org/Equinox/p2/p2_index#Why_say_.27xml.27_instead_of_.27jar.27_in_factory_name.3F
Basically, they are factory names, not file names. Those factories will always look for the .jar files first. In our case, we were hosting a Composite Update Site (CUS) in a non-public AWS S3 bucket but the actual files of the CUS were made public. With this scenario, it seems that S3 replies HTTP 403 if a requested file (the .jar) is not found instead of an HTTP 404 (Ref 1 and Ref 2). Also from the first link,
Our CUS was being generated using the Hope this helps! |
Beta Was this translation helpful? Give feedback.
-
i am trying to upgrade from 2.7.5 to 4.0
but now i get weird errors on a 3rd party product p2 site that we use (that works fine under 2.7.5)
they have a few sites, one is a composite thing which has a p2.index file that has:
metadata.repository.factory.order=compositeContent.xml,!
artifact.repository.factory.order=compositeArtifacts.xml,!
but then tycho does ask for the "jar" variant:
compositeContent.jar
which fails because that one is not there (if i try to download it, its the xml file that is there)
why does tycho try to download the jar variant which is not there for that site? or should that be there?
if i look at our sites then
and the p2.index does say for those:
artifact.repository.factory.order=artifacts.xml.xz,artifacts.xml,!
version=1
metadata.repository.factory.order=content.xml.xz,content.xml,!
so that is kind of what tycho now does i guess?
the "xz" files are in the p2 as is and those are downloaded? but an "xml" file is always downloaded as a jar (expected to)?
Beta Was this translation helpful? Give feedback.
All reactions