Uploaded image for project: 'Red Hat Process Automation Manager'
  1. Red Hat Process Automation Manager
  2. RHPAM-1940

KIE Server and JSON Validation is lacking

    XMLWordPrintable

Details

    • Bug
    • Resolution: Won't Do
    • Major
    • None
    • 7.2.0.GA
    • Kie-Server
    • None
    • Hide

      For example, I can pass in:
      a bad package name
      a bad Fact name
      a bad variable name

      for all of these I am given zero hints that any of these fields are in error. I get a response, but nothing helping me to know that I don't know what I am missing.

      I would expect that exceptions, values and other things would be returned to me to ensure I can interact with the black box of the API w/o needing console access as that wouldn't not traditionally be handed out to me in a Microservices architecture.

      I would also expect either the expected values to be easily discovered via invoking the endpoint, or in documentation so I know what is expected.

      Show
      For example, I can pass in: a bad package name a bad Fact name a bad variable name for all of these I am given zero hints that any of these fields are in error. I get a response, but nothing helping me to know that I don't know what I am missing. I would expect that exceptions, values and other things would be returned to me to ensure I can interact with the black box of the API w/o needing console access as that wouldn't not traditionally be handed out to me in a Microservices architecture. I would also expect either the expected values to be easily discovered via invoking the endpoint, or in documentation so I know what is expected.

    Description

      When calling the KIE server with a JSON file. The JSON passed in values are not validated at all.
      For example passing in something like this:
      {
      "lookup": "itsession",
      "commands" : [ {
      "insert" : {
      "object" : {
      "org.jbpm.demo.Lease" :
      {"leaseAgreementAmount": 99999.99}},
      "out-identifier" : "lease",
      "return-object" : true
      }

      }, {
      "fire-all-rules" : { }
      } ]
      }

      Attachments

        Issue Links

          Activity

            People

              elguardian@gmail.com Enrique González Martínez (Inactive)
              jtyrrell-se-jboss Jim Tyrrell (Inactive)
              Karel Suta Karel Suta
              Karel Suta Karel Suta
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: