mam-dev / cosmo

Cosmo Calendar Server implements the server side of the CalDAV protocol.
Apache License 2.0
77 stars 45 forks source link

ClassCastException in DefaultItemPathTranslator and EntityConverter as JPA query returns proxied entities #58

Open ketanPatil opened 1 year ago

ketanPatil commented 1 year ago

While creating a ticket on a calendar resource, the call is failing with ClassCastException as JPA query returns proxied entities. It fails in DefaultItemPathTranslator.findItemByParentAndName.

Also while trying to fetch a calendar resource using ticket, similar error occurs at EntityConverter.getCalendarFromEventStamp.

Cosmo version: 3.8.4 spring.boot.version: 2.2.13.RELEASE

I am working on building the application from the codebase hence reported this issue so that it gets fixed in the next SNAPSHOT version, if the spring version is upgraded.

danielgrigore commented 1 year ago

Hi @ketanPatil

Can you please provide some information about the steps to reproduce this ? For instance some curl calls using the demo cosmo-webapp.

Thanks.