Code Monkey home page Code Monkey logo

Comments (5)

esoekianto avatar esoekianto commented on August 28, 2024

@kellyhutchins is this where "/rest" must be included in the white list url right?

I think this has been taken care of in java, i just tested and debug the java proxy. the way it gets the infoUrl is actually from the request url, not from the url in the config.

It gets the index of "/rest" in the request url, then the infoUrl is the substring of that url from 0 to that index, plus "/rest/info?f=json"

int infoIndex = url.toLowerCase().indexOf("/rest");
String infoUrl = url.substring(0, infoIndex);
infoUrl += "/rest/info?f=json";

I think we are good here for java.

from resource-proxy.

bsvensson avatar bsvensson commented on August 28, 2024

@esoekianto What if your domain starts with "rest" as in http://reston.example.com ...

from resource-proxy.

esoekianto avatar esoekianto commented on August 28, 2024

@bsvensson It would not work, good catch. I guess it should check for "/rest/". I can make the changes #18

@jgravois how about in .Net for this?

from resource-proxy.

bsvensson avatar bsvensson commented on August 28, 2024

@MehulChoksey - Could you verify this JSP issue?

from resource-proxy.

esoekianto avatar esoekianto commented on August 28, 2024

@kellyhutchins @bsvensson

I think this can be closed and the "better" way should be address in #23

from resource-proxy.

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.