GithubHelp home page GithubHelp logo

Comments (9)

 avatar commented on June 24, 2024

I've forked and commented out that part of the code that does validation on makeSubscription, not sure why you're validating that for uri at all? I believe some sort of validation is ok but clearly "BTC_XMT" is pretty valid feed to make subscription.

Probably something is wrong with regex or you need a different regex for feeds... (i'd left only not null and not empty check)

from jawampa.

Matthias247 avatar Matthias247 commented on June 24, 2024

Hi,
this is because jawampa uses the strict URI validation rules with the corresponding regexes that are described and recommended in the WAMP specification: https://github.com/tavendo/WAMP/blob/master/spec/basic.md#identifiers . These don't allow uppercase characters. btc_xmt would be a valid URI.

The issue is a duplicate of #11 and #12

You are right that there's no absolute need to validate the URIs at client side because it's also done at server side. However it doesn't cost much, can avoid unnecessary messages round trips and leads to consistent results even with buggy or mocked server implementations. So I thought it makes sense to have it.

from jawampa.

 avatar commented on June 24, 2024

Lets thing from different perspective, the api provider in my calse poloniex didnt take into consideration that recomended way of defining feeds, and it defined that i must subscribed to uppercase version, now that i'm a client and using your lib i have no way to use their api (altough yes its their falt not following the guidline but they dont really have to) except what i just did, i must fork your project comment out some logic in order to use a lib? i dont think thats a reasonable.

At least i must have option to choose if i want it to be validated, from my perspective i dont care what they define, i care that my data gets to me....

So my suggestion is to remove that check from there... Its harming us clients not the providers.
I'll write them about that tough... will link to this issue.

from jawampa.

 avatar commented on June 24, 2024

My point is that you dont want to enforce that check in your lib, now i'm worked from your project, unless you fix this or poloniex fix their server side (which i seriously doubt because they have existing clients) i wont be able to get back to remote maven dependency, and will not get future versions (if not done mannually)

from jawampa.

santhosh-tekuri avatar santhosh-tekuri commented on June 24, 2024
WampClientBuilder.withStrictUriValidation(false)

this can be used to relax validation at client side

from jawampa.

 avatar commented on June 24, 2024

How do we track if these changes are in latest maven build? in maven repo...
Does it change version? or i have to build it manually?

from jawampa.

Matthias247 avatar Matthias247 commented on June 24, 2024

Hi,
this is available since a change I made at the weekend. And also the default is now loose validation - so for your case it's even not necessary to set the parameter.

The change is not yet in the newest maven build - that's why I didn't mentioned it here yet. It will be in the next one - but I wanted to look at some other things first and want to avoid making new release versions all the time.

from jawampa.

 avatar commented on June 24, 2024

Ok, this might be not related question but once it versioned and available trough maven repo, can it change but keep same version? or you must change the version? i dont know how its done usually...

I suppose that to see this update in maven i must check for newer version...

from jawampa.

Matthias247 avatar Matthias247 commented on June 24, 2024

If a new version gets available it will also have a new (increased) version number. Otherwise it could break the build for all people which are having a dependency on the current version.

from jawampa.

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.