Closed Epimetheus89 closed 1 year ago
If you see the endpoint in the UI, then it should work. If you don't see the endpoint in the Swagger docs, then the cache reload is not enough (opcache is not reloaded by the command). Restart the image instead.
Anyway: the demo bundle is a development bundle. Using it in a prod environment is wrong. You will not be able to see changes, due to aggressive file and opcode caches
Yes I can see the endpoint in the UI. Therefore I would assume that it should work.
We are using a self written bundle in our company. After the upgrade it stopped working. As there have been some changes in bundle development, I upgraded our own plugin but it did not work with the same error above. After that I tried it with the DemoBundle with the same result. I wrote the bug report with the DemoBundle because all sources are public available.
As both bundles are working with the fpm-dev
image, I would assume that there is a difference between both images.
I also tried the apache images with the exactly same result: The endpoint is working correctly with the apache-dev
image, but not with apache
image.
Here is a screenshot of the demo endpoint including the result:
@Epimetheus89 Have you tried this using the dev build?
Hi @tobybatch I tried the latest apache and apache-dev docker image from dockerhub. My plugin works fine with the apache-dev image but not with the apache image.
Do you mean the apache-dev or fpm-dev images with "dev" or is there another dev image?
I just saw that there was an update of the docker images yesterday. I tested the new image in our production environment and it seems to work again as I receive a 200 status code and data from our plugin endpoint.
kk
Describe the bug The DemoBundle is not working with the
fpm
docker image. After installation of the bundle, the api endpoint returns 404 Not Found. After changing the used image tofpm-dev
, the plugin started working as expected.To Reproduce Steps to reproduce the behaviour:
/api/demos
The endpoint returns a 404 not found status code instead of a 200 ok.
Desktop (please complete the following information):
Docker compose file (with passwords redacted) https://github.com/tobybatch/kimai2/blob/main/compose/docker-compose.fpm.prod.yml
Additional context I tried using the
fpm-dev
image version with the exactly same steps described above and it works completely as expected.