Uploaded image for project: 'Drools'
  1. Drools
  2. DROOLS-1077

[POST] /containers/{id} is outdated

XMLWordPrintable

    • Documentation (Ref Guide, User Guide, etc.)
    • NEW
    • NEW

      The REST URI to send the command fire-all-rules to an running container is outdated.
      Using the URI described in the docs I get the following result:

      2016-02-29 17:03:26 DEBUG org.apache.http.headers     - http-outgoing-0 << Allow: HEAD, DELETE, GET, OPTIONS, PUT
      2016-02-29 17:03:26 DEBUG org.apache.http.headers     - http-outgoing-0 << Content-Type: text/html;charset=utf-8
      2016-02-29 17:03:26 DEBUG org.apache.http.headers     - http-outgoing-0 << Content-Length: 1022
      2016-02-29 17:03:26 DEBUG org.apache.http.headers     - http-outgoing-0 << Date: Mon, 29 Feb 2016 20:03:58 GMT
      Exception in thread "main" java.lang.RuntimeException: Failed with HTTP error code : 405
              at org.jboss.test.arquillian.ce.decisionserver.DecisionServerSecureTest.main(DecisionServerSecureTest.java:404)
              at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
              at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
              at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
              at java.lang.reflect.Method.invoke(Method.java:497)
              at com.intellij.rt.execution.application.AppMain.main(AppMain.java:144)
      

      The correct URI is:

      . [POST] containers/instances/

      {id}

      After to change the REST call worked as expected.

            etirelli@redhat.com Edson Tirelli
            rhn-support-fspolti Filippe Spolti
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: