Giter Club home page Giter Club logo

Comments (4)

aress31 avatar aress31 commented on June 18, 2024

Thank you for your feedback @juhakivekas.

I am very busy at thye moment, I will have to time to take a look at this issue only next week.

I saw your merge request, which I approuved.

Did it fix this issue?

from openapi-parser.

juhakivekas avatar juhakivekas commented on June 18, 2024

I can't verify at the moment because the code doesn't compile on my debian with up to date default-jre from apt repositories. I'll try to get the code to compile and I'll let you know as soon as I do. At the moment I'm still getting six errors, but I'll be working on this code about an hour every morning this week.

from openapi-parser.

juhakivekas avatar juhakivekas commented on June 18, 2024

In Burps extender the host and port for sendToRepeater are passed in separate variables. The host some.random.host:8080 is a valid host according to the swagger specification, but not as a host in the Burp extender. This is the reason for the exception, and it seems this is just a use-case that hasn't been taken into account.

Swurg already guesses the port number based on the schemes field in the swagger file. In order to enable connecting to APIs not on the schemes default ports, the host parameter should first be checked for a port number, and if one is found, then this should be used instead of the value returned by protocolToPort(protocol).

from openapi-parser.

aress31 avatar aress31 commented on June 18, 2024

A solution is now implemented, an update will soon follow.
My solution is to check if the schema field is empty, if it is the case rather than returning a null pointer, the plugin will now check the host for the presence of a port. If none of these conditions are met an exception will be raised.
Many thanks to @juhakivekas for reporting this issue and providing very usefull information.

from openapi-parser.

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.