Engine API issue with HTTP_API enable
Opened this issue · 2 comments
Hi Folks,
I deployed the Bonite docker image, and I'm trying to use the Engine API, but I'm getting 404 error, and the issue persists even with security hardening on REST and HTTP APIs set
$ http POST http://localserver:8080/bonita/serverAPI
HTTP/1.1 404
Content-Length: 1135
Content-Type: text/html;charset=UTF-8
Printing ENV
$ oc rsh bonita-app-dev-33-xdw6g
# env | grep -i api
REST_API_DYN_AUTH_CHECKS=false
HTTP_API=true
Bonita service log
$ oc logs -f bonita-app-dev-33-xdw6g
+ BONITA_PATH=/opt/bonita
+ BONITA_TPL=/opt/templates
+ BONITA_FILES=/opt/files
+ ENSURE_DB_CHECK_AND_CREATION=true
+ JAVA_OPTS='-Xms1024m -Xmx1024m'
+ REST_API_DYN_AUTH_CHECKS=false
+ HTTP_API=true
+ CLUSTER_MODE=false
+ '[' -n '' ']'
...
Hi @fulvi0
What Bonita docker image version are you using?
Normally, with HTTP_API=true
, it should allow you to access Engine APIs through HTTP.
Do you use bonita-client.jar to access to the APIs?
Did you follow the documentation?
Thank you for the response, the version is 7.10; I followed the documentation but I couldn't make work.
An interesting fact the API isn't able to work for some reason just in my Openshift Environment Only; the container runs and works properly with API service, in my local environment. weird.