eltrino / diamantedesk-application

DiamanteDesk
http://diamantedesk.com/
Other
118 stars 42 forks source link

API Errors #60

Open Lukas871 opened 7 years ago

Lukas871 commented 7 years ago

Hi, I have a few problems with helpdesk API.

I tried this on two diferent instalations on two deiferent servers, but still with the same result. Do you have any ideas what can be wrong? Thank you, Lukas

northdakota commented 7 years ago

Hi Lukas871, Could you please to specify what version of diamantedesk you use?

Lukas871 commented 7 years ago

It is version 2.0.3.

Lukas871 commented 7 years ago

In profiler (during update ticket PATCH /api/rest/latest/desk/tickets) there are 3 mapping errors:

The association Diamante\UserBundle\Entity\DiamanteUser#apiUser refers to the owning side field Diamante\UserBundle\Entity\ApiUser#id which is not defined as association, but as field.
The association Diamante\UserBundle\Entity\DiamanteUser#apiUser refers to the owning side field Diamante\UserBundle\Entity\ApiUser#id which does not exist.

The mappings Diamante\UserBundle\Entity\ApiUser#diamanteUser and Diamante\UserBundle\Entity\DiamanteUser#apiUser are inconsistent with each other.

In my last point from the first comment I used wrong path (GET /api/rest/latest/desk/tickets/2/assignee -> GET /api/rest/latest/desk/ticket/2/assignee) so the hedline with loading is returned when the path is not found.