Comments (10)
Should be (finally) fixed now in https://github.com/Endava/cats/releases/tag/cats-7.0.4
from cats.
Awesome thank you, it is fixed.
from cats.
Hi @comat0zz. Thank you for reporting this. It seems to be caused by the fact the the Swagger 2 parser was not included in the generated linux native image. Can you please confirm if your API spec is swagger 2? If this is true, the fix is available in 58a338e and will be released in 7.0.2.
from cats.
Yes, "swagger": "2.0"
from cats.
Great. The fix will be available in 7.0.2, which will be released this week.
from cats.
Hi @en-milie I just got the 7.0.2 version, I have a Swagger 2 file and I am still getting the same error
cats --contract=swagger.yaml --server=https://api --headers=headers.yaml --blackbox
[**********][*******] ▶ start Starting CATS, version 7.0.2, build-time 2022-01-16T18:22:12Z UTC
[**********][*******] ● note Processing configuration...
[**********][*******] ℹ info No security custom Fuzzer file. SecurityFuzzer will be skipped!
[**********][*******] ℹ info No custom Fuzzer file. CustomFuzzer will be skipped!
[**********][*******] ℹ info No reference data file was supplied! Payloads supplied by Fuzzers will remain unchanged!
[**********][*******] ℹ info No URL parameters supplied!
[**********][*******] ☑ complete Finished parsing the contract in 62 ms
[**********][*******] ▶ start Start cleaning up cats-report folder ...
[**********][*******] ☑ complete Cleanup complete!
java.lang.NullPointerException
at com.endava.cats.util.OpenApiUtils.getSchemas(OpenApiUtils.java:49)
at com.endava.cats.command.CatsCommand.initGlobalData(CatsCommand.java:125)
at com.endava.cats.command.CatsCommand.doLogic(CatsCommand.java:119)
at com.endava.cats.command.CatsCommand.run(CatsCommand.java:107)
at picocli.CommandLine.executeUserObject(CommandLine.java:1939)
at picocli.CommandLine.access$1300(CommandLine.java:145)
at picocli.CommandLine$RunLast.executeUserObjectOfLastSubcommandWithSameParent(CommandLine.java:2358)
at picocli.CommandLine$RunLast.handle(CommandLine.java:2352)
at picocli.CommandLine$RunLast.handle(CommandLine.java:2314)
at picocli.CommandLine$AbstractParseResultHandler.execute(CommandLine.java:2179)
at picocli.CommandLine$RunLast.execute(CommandLine.java:2316)
at picocli.CommandLine.execute(CommandLine.java:2078)
at com.endava.cats.CatsMain.run(CatsMain.java:27)
at com.endava.cats.CatsMain_ClientProxy.run(Unknown Source)
at io.quarkus.runtime.ApplicationLifecycleManager.run(ApplicationLifecycleManager.java:125)
at io.quarkus.runtime.Quarkus.run(Quarkus.java:67)
at io.quarkus.runtime.Quarkus.run(Quarkus.java:41)
at io.quarkus.runner.GeneratedMain.main(Unknown Source)
Can you please have a look? Thanks
from cats.
Hi @tasoskoutlis-f3 yes. It seems so. I will release a patch tonight.
from cats.
Hi @tasoskoutlis-f3. This is fixed now in https://github.com/Endava/cats/releases/tag/cats-7.0.3
from cats.
Hi @en-milie I just got the 7.0.3 version, I have a Swagger 2 file and I am still getting the same error, could you please have a look? Thank you
# # # # # # # # # # # # # # # # # # # # # # # # # #
# _____ ___ _____ _____ #
# / __ \ / _ \_ _/ ___| #
# | / \// /_\ \| | \ `--. #
# | | | _ || | `--. \ #
# | \__/\| | | || | /\__/ / #
# \____/\_| |_/\_/ \____/ #
# .. ... -.-. --- --- .-.. #
# #
# # # # # # # # # # # # # # # # # # # # # # # # # #
Powered by Quarkus 2.6.2.Final
[**********][*******] ▶ start Starting CATS, version 7.0.3, build-time 2022-01-18T18:51:46Z UTC
[**********][*******] ● note Processing configuration...
[**********][*******] ℹ info No security custom Fuzzer file. SecurityFuzzer will be skipped!
[**********][*******] ℹ info No custom Fuzzer file. CustomFuzzer will be skipped!
[**********][*******] ℹ info No reference data file was supplied! Payloads supplied by Fuzzers will remain unchanged!
[**********][*******] ℹ info No URL parameters supplied!
[**********][*******] ☑ complete Finished parsing the contract in 279 ms
[**********][*******] ▶ start Start cleaning up cats-report folder ...
[**********][*******] ☑ complete Cleanup complete!
java.lang.NullPointerException
at com.endava.cats.util.OpenApiUtils.getSchemas(OpenApiUtils.java:59)
at com.endava.cats.command.CatsCommand.initGlobalData(CatsCommand.java:125)
at com.endava.cats.command.CatsCommand.doLogic(CatsCommand.java:119)
at com.endava.cats.command.CatsCommand.run(CatsCommand.java:107)
at picocli.CommandLine.executeUserObject(CommandLine.java:1939)
at picocli.CommandLine.access$1300(CommandLine.java:145)
at picocli.CommandLine$RunLast.executeUserObjectOfLastSubcommandWithSameParent(CommandLine.java:2358)
at picocli.CommandLine$RunLast.handle(CommandLine.java:2352)
at picocli.CommandLine$RunLast.handle(CommandLine.java:2314)
at picocli.CommandLine$AbstractParseResultHandler.execute(CommandLine.java:2179)
at picocli.CommandLine$RunLast.execute(CommandLine.java:2316)
at picocli.CommandLine.execute(CommandLine.java:2078)
at com.endava.cats.CatsMain.run(CatsMain.java:27)
at com.endava.cats.CatsMain_ClientProxy.run(Unknown Source)
at io.quarkus.runtime.ApplicationLifecycleManager.run(ApplicationLifecycleManager.java:125)
at io.quarkus.runtime.Quarkus.run(Quarkus.java:67)
at io.quarkus.runtime.Quarkus.run(Quarkus.java:41)
at io.quarkus.runner.GeneratedMain.main(Unknown Source)
from cats.
Hi @daniel-f3. Can you please post a sample that fails? I'm not able to reproduce this anymore with the swagger 2 spec I have.
from cats.
Related Issues (20)
- [FunctionalFuzzer] Warning on nullable enum HOT 2
- [Bug]: Path parameters are not fuzzed for PUT/PATCH/POST methods HOT 6
- MinimumExactNumbersInNumericFieldsFuzzer MaximumExactNumbersInNumericFieldsFuzzer fuzzers fuzz values as "string" not as schema data type HOT 3
- NullPointerException when traing to run app HOT 3
- CountryCode regex pattern is not honoured HOT 3
- Very long string is getting generated for "zip" (zip code/pin code) field HOT 3
- Ip Address value is not generated properly HOT 2
- Regex match on --path HOT 1
- java.lang.IllegalArgumentException When header.yaml file is given as input HOT 5
- Link fuzzer reports with actual vulnerabilities HOT 2
- README has not got enough information. HOT 1
- The project structure seems a bit confusing HOT 2
- execution handling in readme file HOT 1
- README translation HOT 1
- For some spec files cyclic redundancy check goes into infinite loop HOT 3
- Error when fuzzing `Expected to find an object with property ['th'] in path $['th'] but found 'net.minidev.json.JSONArray'` HOT 2
- windows : i use command java -jar cats.jar on the cmd . but there is nothing ! HOT 1
- Does exist a Docker compose example with something like PetClinic to test the cats? HOT 1
- IllegalStateException when cats executes DELETE/GET requests with URL parameters and w/o requested body HOT 2
- Response body is not being validated by OpenAPI schema HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from cats.