Comments (11)
thanks for the report, beside the (temporal) solution from @merks I thin we should enhance the cache manager here to retry such attempts, if I remember correctly there are already some handling for specific cases.
from p2.
I believe this issue only arises if the org.eclipse.ecf.provider.filetransfer.httpclientjava provider is used. You can use this system system property to disable this provided and as a result use the older provider that uses Apache libraries:
-Dorg.eclipse.ecf.provider.filetransfer.excludeContributors=org.eclipse.ecf.provider.filetransfer.httpclientjava
Please 🙏 let us know if this works for you.
from p2.
I tried the system property. The requests are now HTTP/1.1 (which means there is no GOAWAY
anyway). However, there is a different problem now:
!MESSAGE No repository found at https://xxx/yyy/master%2creleases*2024-06%2c.
No further information available right now. Could the %2c
at the end be the problem? It's not a problem without the system property.
from p2.
I can't really say where such a URI would come from. I know there have been changes in the Apache libraries used by the older provider too. What URI would actually work in the Repository Explorer in the IDE; all the Eclipse IDEs also suppress the new providers so try testing your URIs in the IDE with the Repository Explorer...
from p2.
The %2c
and *
come from our system, but they are valid characters in a URI and calling that URL with other tools (curl) or even older versions of the p2 director worked fine.
from p2.
@sithmein it is completely impossible to reliable guess whats wrong with a site just given some random characters.
So please provide us with a public accessible site that reproduces the problem it does not need to contain the same content like your site of course.
from p2.
Try https://update-origin.knime.com/analytics-platform/tmp/master%2creleases*2024-06%2c as a p2 repository URL.
https://update-origin.knime.com/analytics-platform/tmp/master%2creleases*2024-06%2c/compositeContent.jar (and compositeArtifacts.jar) can be downloaded from the browser but if the above URL is used in Eclipse 2024-03 it cannot find a repository.
from p2.
Strange, the Repository Explorer loads but you can't install from it:
When I convert the %2c to to ,
then it works:
I'll try to find time to debug what's going wrong...
from p2.
The call stack calls this utility method that clearly states the string must be one that is not encoded and even mentiones the double encoding of % if that's present:
So indeed, by the time we get to creating a URI, it's encoded the %25.
I expect if we were to change this, we'd break someone else who's relying on their text getting encoded so I don't see a good way to fix this.
Using this directly works:
https://update-origin.knime.com/analytics-platform/tmp/master,releases*2024-06,/
Isn't that sufficient?
from p2.
In this instance probably yes. However ,
is a reserved character in a URI and therefore has to be encoded if used as a "normal" character.
I know that this is a rather special case but the problem indicates that something is fishy with how URIs are handled.
from p2.
I suppose yes, but Java happily creates a URI with a ,
:
And the Repository Explorer which does no encoding also works fine with a ,
:
In any case, it's the encoding of an already-encoded string that's a problem and I see no good way to avoid it without the risk of breaking someone else...
from p2.
Related Issues (20)
- Unlikely argument type HOT 2
- Bundles placed to "linked" locations not found since 4.31 HOT 26
- Getting error "Problems downloading artifact: osgi.bundle,com.sun.jna,5.13.0.v20230812-1000. The signature is invalid for current content", when exporting product for simple target for Eclipse 4.30 HOT 2
- UpdateSitePublisher -addJREIU argument doesn't add current JVM HOT 1
- Jenkins builds fail with Java heap space
- P2 is not supporting the effective directive properly HOT 2
- unsigned jar files flagged as untrusted even if the content is non-code HOT 13
- Updating a touchpoint action and calling it calls the previous version of the action HOT 7
- Broken Java 11 Tycho Build due to new org.eclipse.equinox.common 3.19 getting picked up HOT 2
- Enhance p2 director with "addJREIU" option HOT 13
- Do not show error popup on failed automatic update checks HOT 1
- Migrate wiki pages to repo HOT 7
- Overhaul documentation on p2 director application HOT 3
- "Verify provisioning operation is compatible with currently running JRE" is not working HOT 7
- API error on org.eclipse.equinox.p2.core HOT 2
- redirect configuration / p2 runtime data to non-default location
- A "org.eclipse.equinox.p2.transport.javahttpclient" transport using directly Java HTTP client or OSGi services HOT 9
- Incorrect usage of File.renameTo() in CacheManager HOT 10
- IRepository.PROP_COMPRESSED is confusing
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from p2.