Coder Social home page Coder Social logo

Comments (11)

laeubi avatar laeubi commented on September 3, 2024 2

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.

merks avatar merks commented on September 3, 2024

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.

sithmein avatar sithmein commented on September 3, 2024

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.

merks avatar merks commented on September 3, 2024

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.

sithmein avatar sithmein commented on September 3, 2024

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.

laeubi avatar laeubi commented on September 3, 2024

@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.

sithmein avatar sithmein commented on September 3, 2024

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.

merks avatar merks commented on September 3, 2024

Strange, the Repository Explorer loads but you can't install from it:

image

When I convert the %2c to to , then it works:

image

I'll try to find time to debug what's going wrong...

from p2.

merks avatar merks commented on September 3, 2024

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:

image

So indeed, by the time we get to creating a URI, it's encoded the %25.

image

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.

sithmein avatar sithmein commented on September 3, 2024

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.

merks avatar merks commented on September 3, 2024

I suppose yes, but Java happily creates a URI with a ,:

image

And the Repository Explorer which does no encoding also works fine with a ,:

image

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.