[jboss-jira] [JBoss JIRA] (DROOLS-1077) [POST] /containers/{id} is outdated
Edson Tirelli (JIRA)
issues at jboss.org
Wed Mar 16 08:43:00 EDT 2016
[ https://issues.jboss.org/browse/DROOLS-1077?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Edson Tirelli resolved DROOLS-1077.
-----------------------------------
Fix Version/s: 6.4.0.CR2
7.0.0.Final
Resolution: Done
This was fixed as part of the following commits:
master: https://github.com/droolsjbpm/kie-docs/commit/bb6911736d932e2c9ab67f51f52bf1c304321c56
6.4.x: https://github.com/droolsjbpm/kie-docs/commit/f1b2ebb460fe58f330fabdb4e83fb128bba89892
> [POST] /containers/{id} is outdated
> ------------------------------------
>
> Key: DROOLS-1077
> URL: https://issues.jboss.org/browse/DROOLS-1077
> Project: Drools
> Issue Type: Bug
> Components: docs
> Affects Versions: 6.3.0.Final
> Environment: 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:
> {code}
> 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)
> {code}
> The correct URI is:
> . [POST] instances/containers/{id}
> After to change the REST call worked as exp
> Documentation link: https://docs.jboss.org/drools/release/6.3.0.Final/drools-docs/pdf/drools-docs.pdf
> Item 22.6.7.
> Reporter: Filippe Spolti
> Assignee: Edson Tirelli
> Labels: doc, rest_api
> Fix For: 6.4.0.CR2, 7.0.0.Final
>
>
> 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:
> {code}
> 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)
> {code}
> The correct URI is:
> . [POST] containers/instances/{id}
> After to change the REST call worked as expected.
--
This message was sent by Atlassian JIRA
(v6.4.11#64026)
More information about the jboss-jira
mailing list