Bonitasoft-Community / docker_bonita

:whale: Source of the official Bonita Docker image
https://hub.docker.com/_/bonita/
17 stars 16 forks source link

Engine API issue with HTTP_API enable #27

Open fulvi0 opened 4 years ago

fulvi0 commented 4 years ago

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 '' ']'
...
educhastenier commented 4 years ago

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?

fulvi0 commented 4 years ago

Hi @educhastenier

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.