Coder Social home page Coder Social logo

Comments (12)

ggnaegi avatar ggnaegi commented on May 23, 2024 2

No, unfortunately, I can't show you the delegating handler code. I catched the problem on staging environment.

from ocelot.

Fabman08 avatar Fabman08 commented on May 23, 2024 2

@raman-m I've the same problem with the following configuration

"UpstreamPathTemplate": "/{serviceVersion}/myService/{any}",
"DownstreamPathTemplate": "v3.0/api/myRemoteService/{any}"

In my case it doesn't matter what {serviceVersion} is set on the UpstreamPathTemplate, the DownstreamPathTemplate must forwards request to version v3.0

from ocelot.

ggnaegi avatar ggnaegi commented on May 23, 2024 1

Yes, I can provide the fake delegating handler. I could write the acceptance test too.

from ocelot.

raman-m avatar raman-m commented on May 23, 2024 1

Now I'm testing the hotfix... I'll open a PR soon...

from ocelot.

raman-m avatar raman-m commented on May 23, 2024 1

@ggnaegi @RaynaldM @Fabman08
Welcome to code review for #2032 !

@ggnaegi
You could add acceptance test for your user scenario if you want.

from ocelot.

raman-m avatar raman-m commented on May 23, 2024

@ggnaegi
Thanks for reporting!
What environment did you catch the problem in? Production or development?

And, first of all, show the code of your delegating handler please.

from ocelot.

ggnaegi avatar ggnaegi commented on May 23, 2024

As mentioned, there are plenty of possible use cases where you could end up with the placeholders not matching. It's quite obvious in my opinion.

from ocelot.

raman-m avatar raman-m commented on May 23, 2024

In my opinion this is not so obvious.
I don't see delegation handler code or overridden services in DI. Impossible to advise or discuss what is hidden.
It's very strange to report a problem and then talk about the code being closed.

Our project is an open source project ❗

All discussions and source code should be publicly available.

from ocelot.

ggnaegi avatar ggnaegi commented on May 23, 2024

I don't want to argue about this any longer, thanks. I think we have added to much validation there, that's it. I will come back with a new PR later.

from ocelot.

raman-m avatar raman-m commented on May 23, 2024

🤯 🤣

No, we will continue to search for an ideal solutions...
This is our destiny!

from ocelot.

ggnaegi avatar ggnaegi commented on May 23, 2024

🦄 👑 🌈

from ocelot.

raman-m avatar raman-m commented on May 23, 2024

I'm using a delegating handler to transform some upstream route parameters before calling the downstream service. eg. upstream: api/v1/service/endpoint/{upParam1}/{upParam2} -> downstream api/v1/internal-service/endpoint/{downParam}. It was working like a charm, since Release 23.2 it's not possible anymore.

@ggnaegi
How to emulate your user scenario?
Can we test it? I expect it is necessary to write a fake delegating handler in acceptance test.
Is it a new feature or custom hybrid setup in your app?
Will you help to write acceptance test?

from ocelot.

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.