Closed dehehe-mirai closed 3 years ago
version: v6.0.5 running environments: Windows 10(64bit)
openjdk version "11" 2018-09-25 OpenJDK Runtime Environment 18.9 (build 11+28) OpenJDK 64-Bit Server VM 18.9 (build 11+28, mixed mode)
command: cats --contract=ghes-2.22.yaml --server=https://api.github.com --paths="/user/repos" --headers=header_github.yml where cats is just java -jar (path)\cats.jar %* error message:
cats --contract=ghes-2.22.yaml --server=https://api.github.com --paths="/user/repos" --headers=header_github.yml
cats
java -jar (path)\cats.jar %*
[32m _____ ___ _____ _____ / __ \ / _ \_ _/ ___| | / \// /_\ \| | \ `--. | | | _ || | `--. \ | \__/\| | | || | /\__/ / \____/\_| |_/\_/ \____/ .. ... -.-. --- --- .-.. [39m [[36m********* [0;39m][[36m*****[0;39m] [34m[1m [1mnote[m Proxy configuration to be used: DIRECT [[36m********* [0;39m][[36m*****[0;39m] [32m[1m [1mstart[m Starting [32mCATS, version [32m6.0.5, build-time [32m2021-08-30T05:50:13.55[m UTC [[36m********* [0;39m][[36m*****[0;39m] [34m[1m [1mnote[m [32mProcessing configuration...[m [[36m********* [0;39m][[36m*****[0;39m] [34m[1m? [1minfo[m No security custom Fuzzer file. SecurityFuzzer will be skipped! [[36m********* [0;39m][[36m*****[0;39m] [34m[1m? [1minfo[m No custom Fuzzer file. CustomFuzzer will be skipped! [[36m********* [0;39m][[36m*****[0;39m] [34m[1m? [1minfo[m No reference data file was supplied! Payloads supplied by Fuzzers will remain unchanged! [[36m********* [0;39m][[36m*****[0;39m] [34m[1m? [1minfo[m No URL parameters supplied! [[36m********* [0;39m][[36m*****[0;39m] [32m[1m [1mstart[m skipXXXForPath supplied arguments: []. Matching with registered fuzzers... [[36m********* [0;39m][[36m*****[0;39m] [32m[1m? [1mcomplete[m skipXXXForPath list after matching with registered fuzzers: [] [[36m********* [0;39m][[36m*****[0;39m] [34m[1m? [1minfo[m [[36m********* [0;39m][[36m*****[0;39m] [34m[1m? [1minfo[m Supplied arguments [[36m********* [0;39m][[36m*****[0;39m] [34m[1m? [1minfo[m contract: ghes-2.22.yaml [[36m********* [0;39m][[36m*****[0;39m] [34m[1m? [1minfo[m server: https://api.github.com [[36m********* [0;39m][[36m*****[0;39m] [34m[1m? [1minfo[m maxRequestsPerMinute: empty [[36m********* [0;39m][[36m*****[0;39m] [34m[1m? [1minfo[m fuzzers: all [[36m********* [0;39m][[36m*****[0;39m] [34m[1m? [1minfo[m paths: /user/repos [[36m********* [0;39m][[36m*****[0;39m] [34m[1m? [1minfo[m skipPaths: empty [[36m********* [0;39m][[36m*****[0;39m] [34m[1m? [1minfo[m excludedFuzzers: empty [[36m********* [0;39m][[36m*****[0;39m] [34m[1m? [1minfo[m skipXXXForPath: [] [[36m********* [0;39m][[36m*****[0;39m] [34m[1m? [1minfo[m skipFields: empty [[36m********* [0;39m][[36m*****[0;39m] [34m[1m? [1minfo[m httpMethods: empty [[36m********* [0;39m][[36m*****[0;39m] [34m[1m? [1minfo[m checkHeaders: false [[36m********* [0;39m][[36m*****[0;39m] [34m[1m? [1minfo[m checkFields: false [[36m********* [0;39m][[36m*****[0;39m] [34m[1m? [1minfo[m checkHttp: false [[36m********* [0;39m][[36m*****[0;39m] [34m[1m? [1minfo[m checkContract: false [[36m********* [0;39m][[36m*****[0;39m] [34m[1m? [1minfo[m fieldsFuzzingStrategy: ONEBYONE [[36m********* [0;39m][[36m*****[0;39m] [34m[1m? [1minfo[m maxFieldsToRemove: empty [[36m********* [0;39m][[36m*****[0;39m] [34m[1m? [1minfo[m edgeSpacesStrategy: trimAndValidate [[36m********* [0;39m][[36m*****[0;39m] [34m[1m? [1minfo[m sanitizationStrategy: sanitizeAndValidate [[36m********* [0;39m][[36m*****[0;39m] [34m[1m? [1minfo[m useExamples: true [[36m********* [0;39m][[36m*****[0;39m] [34m[1m? [1minfo[m reportingLevel: info [[36m********* [0;39m][[36m*****[0;39m] [34m[1m? [1minfo[m log: empty [[36m********* [0;39m][[36m*****[0;39m] [34m[1m? [1minfo[m printExecutionStatistics: false [[36m********* [0;39m][[36m*****[0;39m] [34m[1m? [1minfo[m timestampReports: empty [[36m********* [0;39m][[36m*****[0;39m] [34m[1m? [1minfo[m reportFormat: htmlJs [[36m********* [0;39m][[36m*****[0;39m] [34m[1m? [1minfo[m urlParams: empty [[36m********* [0;39m][[36m*****[0;39m] [34m[1m? [1minfo[m headers: header_github.yml [[36m********* [0;39m][[36m*****[0;39m] [34m[1m? [1minfo[m refData: empty [[36m********* [0;39m][[36m*****[0;39m] [34m[1m? [1minfo[m customFuzzerFile: empty [[36m********* [0;39m][[36m*****[0;39m] [34m[1m? [1minfo[m securityFuzzerFile: empty [[36m********* [0;39m][[36m*****[0;39m] [34m[1m? [1minfo[m proxyPort: 0 [[36m********* [0;39m][[36m*****[0;39m] [34m[1m? [1minfo[m proxyHost: empty [[36m********* [0;39m][[36m*****[0;39m] [34m[1m? [1minfo[m sslKeystore: empty [[36m********* [0;39m][[36m*****[0;39m] [34m[1m? [1minfo[m sslKeystorePwd: empty [[36m********* [0;39m][[36m*****[0;39m] [34m[1m? [1minfo[m sslKeyPwd: empty [[36m********* [0;39m][[36m*****[0;39m] [34m[1m? [1minfo[m basicauth: empty [[36m********* [0;39m][[36m*****[0;39m] [32m[1m? [1mcomplete[m [32mFinished parsing the contract in 1074 ms[m [ (...) [[36m********* [0;39m][[36m*****[0;39m] [34m[1m [1mskipping[m Skipping path /user/projects [[36m********* [0;39m][[36m*****[0;39m] [34m[1m [1mskipping[m Skipping path /user/public_emails [[36m********* [0;39m][[36m*****[0;39m] [31m[1m? [1merror[m Something went wrong while running CATS! java.lang.NullPointerException: null at com.endava.cats.CatsMain.addToSchemas(CatsMain.java:131) at com.endava.cats.CatsMain.lambda$getSchemas$1(CatsMain.java:115) at java.base/java.util.LinkedHashMap.forEach(LinkedHashMap.java:684) at com.endava.cats.CatsMain.getSchemas(CatsMain.java:115) at com.endava.cats.CatsMain.fuzzPath(CatsMain.java:360) at com.endava.cats.CatsMain.startFuzzing(CatsMain.java:180) at com.endava.cats.CatsMain.doLogic(CatsMain.java:171) at com.endava.cats.CatsMain.run(CatsMain.java:149) at org.springframework.boot.SpringApplication.callRunner(SpringApplication.java:791) at org.springframework.boot.SpringApplication.callRunners(SpringApplication.java:775) at org.springframework.boot.SpringApplication.run(SpringApplication.java:345) at com.endava.cats.CatsMain.main(CatsMain.java:102) at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.base/java.lang.reflect.Method.invoke(Method.java:566) at org.springframework.boot.loader.MainMethodRunner.run(MainMethodRunner.java:49) at org.springframework.boot.loader.Launcher.launch(Launcher.java:108) at org.springframework.boot.loader.Launcher.launch(Launcher.java:58) at org.springframework.boot.loader.PropertiesLauncher.main(PropertiesLauncher.java:467)
spec file:https://github.com/github/rest-api-description/blob/main/descriptions/ghes-2.22/ghes-2.22.yaml header file:
https://github.com/github/rest-api-description/blob/main/descriptions/ghes-2.22/ghes-2.22.yaml
all: Authorization: token (personal token)
I've tried with --paths="/user/repo", then it runs successfuly with all skipped.
--paths="/user/repo"
This is now fixed and will be released in 6.0.6.
Fixed in 6.0.6
version: v6.0.5 running environments: Windows 10(64bit)
command:
cats --contract=ghes-2.22.yaml --server=https://api.github.com --paths="/user/repos" --headers=header_github.yml
wherecats
is justjava -jar (path)\cats.jar %*
error message:spec file:
https://github.com/github/rest-api-description/blob/main/descriptions/ghes-2.22/ghes-2.22.yaml
header file:I've tried with
--paths="/user/repo"
, then it runs successfuly with all skipped.