Endava / cats

CATS is a REST API Fuzzer and negative testing tool for OpenAPI endpoints. CATS automatically generates, runs and reports tests with minimum configuration and no coding effort. Tests are self-healing and do not require maintenance.
Apache License 2.0
1.11k stars 76 forks source link

Incomplete group expression #128

Closed ctwinovalon closed 3 weeks ago

ctwinovalon commented 1 month ago

Testing the fix for #125 and the error now shows "[MLEVISF] Something went wrong while running CATS: java.lang.IllegalArgumentException: Incomplete group expression at position=2"

Presumably the previous example api json should work for this.

en-milie commented 1 month ago

I’ve tested with that json and it’s working fine. Might be another regex that fails to generate a proper value.

en-milie commented 1 month ago

@ctwinovalon can you please run cats with --verbosity DETAILED --debug and paste here the regex that fails?

ctwinovalon commented 1 month ago

Here you go!

 [*******][MLEVISF] Γù» Field initialLoginUrl has an associated schema
  [*******][MLEVISF] Γù» Generate for pattern ^(?i)(http:\/\/|https:\/\/)([a-z0-9./\-_.~+=:;%&?]+)$ min 11
  5 max 115
  [*******][MLEVISF] Γù» RGX generator failed, returning empty.: com.github.curiousoddman.rgxgen.parsing.d
  flt.RgxGenParseException: Unexpected symbol in pattern:
  '^(?i)(ht'
      ^
en-milie commented 4 weeks ago

It should be fixed in: https://github.com/Endava/cats/releases/tag/cats-11.7.0