-
-
Notifications
You must be signed in to change notification settings - Fork 52
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[BUG] issue when importing Swagger file "Cannot invoke "io.swagger.v3.oas.models.media.Content.entrySet()" #97
Comments
Hey @TridenGroup could you kindly try to compile the version on this repository and use it. The PortSwigger fork - and thereby the BApp store version - is lagging way behind this repository. Once done please share the results! |
Hi Mr. Teyar @aress31 , thanks for your quick response. Sorry for the delay, I had some issues with the correct Java version getting read in order to install Gradle.
|
@TridenGroup, you should be able to view the error logs under: And that is correct in the latest version |
@TridenGroup (and @aress31) I ran into this same issue this evening and after comparing working and non-working API specifications and a little experimentation, it came down to some of the e.g.,
Once the e.g.,
|
I can confirm that the API docs I was provided for this test did not have completed
Thank you. In hindsight it makes perfect sense. @aress31 I suggest some clearer messaging on this issue being due to an incomplete or malformed Open API spec file, since there's likely others that will run in to this. Thanks to both of you @aress31 @holosc0ld |
Latest version should handle better null checks and be more robust when parsing incomplete/invalid specs. @TridenGroup try to re-load the faulty spec and feel free to reopen this ticket if the error persists. |
Prerequisites Checklist
Before submitting the issue, please make sure you have:
Description
I installed openapi-parser from the bApp store. After selecting an OpenAPI 3.0.0 specification file, I get the following error message:
This message appears at the bottom of the Burp Suite Window. I have reviewed the file and it is readable YAML, not a corrupt file.
Steps to Reproduce
Cannot invoke "io.swagger.v3.oas.models.media.Content.entrySet()" because the return value of "io.swagger.v3.oas.models.responses.ApiResponse.getContent()" is null
"Expected Behavior
I expected the yaml file to be ingested
Screenshots
None useful.
Environment
OpenAPI Specification
openapi: '3.0.0'
info:
version: '1.0.0'
title: '[REDACTED]'
description: [REDACTED] API
servers:
- url: [REDACTED]
description: [REDACTED]
paths:
/api/account/token/:
post:
^ Just do demonstrate that it is formatted as expected.
Error Message
I don't see an
Extender Error tab
but error message at bottom of the app reads: "Cannot invoke "io.swagger.v3.oas.models.media.Content.entrySet()" because the return value of "io.swagger.v3.oas.models.responses.ApiResponse.getContent()" is null
"Additional Context
None more I can think of. Please let me know if more information is needed.
I would post this issue on the PortSwigger/openapi-parser repo but I do not see any way to submit issues on that branch.
EDIT: formatting.
The text was updated successfully, but these errors were encountered: