konveyor / kai

Konveyor AI - static code analysis driven migration to new targets via Generative AI
Apache License 2.0
25 stars 32 forks source link

500 status code When Incident Variable data Field changes. #75

Open hhpatel14 opened 8 months ago

hhpatel14 commented 8 months ago

To successfully submit a POST request, the "Variables" map must be structured as follows:

App Name: eap-coolstore-monolith. Ruleset Name: eap8/eap7. Ruleset ID: javax-to-jakarta-import-00001.

Varibles: {
  "file": "file:///tmp/source-code/src/main/java/com/redhat/coolstore/utils/Transformers.java",
  "kind": "Module",
  "name": "javax.json.JsonArray",
  "package": "com.redhat.coolstore.utils",
  "renamed": "json"
}

The "renamed" field is optional and not required for the request to be successful. However, the fields "file", "kind", "name", and "package" are mandatory. Failure to include these required fields results in a 500 status code error.

For example: App Name: eap-coolstore-monolith. Ruleset Name: eap8/eap7. Ruleset ID: javaee-to-jakarta-namespaces-00006.

Varibles: {
  "matchingText": "beans_1_1.xsd"
}

It's important to note that "Variables" is structured as a map. Any deviation from the specified structure leads to a 500 status code error.

hhpatel14 commented 8 months ago

Update Different variable structure, but no 500 error.

Appname Name: eap-coolstore-monolith. Ruleset Name: quarkus/springboot. Ruleset ID: quarkus-flyway-00010.

Variables: {
  "name": "org.flywaydb.flyway-core",
  "version": "4.1.2"
}