Hello Adrien,

I just checked and the deserialization is setup for the profile item type,
for "top level" item types, but maybe it is missing a mapping for the event
source and target properties. This is something that needs checking.

If you want to contribute that would be fantastic. I think it would be good
to look at the
https://github.com/apache/unomi/blob/64281306c770c710ec737f64ece7332f54e91cd5/persistence-spi/src/main/java/org/apache/unomi/persistence/spi/PropertyTypedObjectDeserializer.java#L53
object to see if it can work with sub-objects and if it can to see how we
could do a generic mapping system for event objects.

Regards,
  Serge Huber.
Serge Huber
CTO & Co-Founder
T +41 22 361 3424
9 route des Jeunes | 1227 Acacias | Switzerland
jahia.com <http://www.jahia.com/>
SKYPE | LINKEDIN <https://www.linkedin.com/in/sergehuber> | TWITTER
<https://twitter.com/sergehuber> | VCARD
<http://www.jahia.com/vcard/HuberSerge.vcf>


> JOIN OUR COMMUNITY <http://www.jahia.com/> to evaluate, get trained and
to discover why Jahia is a leading User Experience Platform (UXP) for
Digital Transformation.


On Thu, Apr 28, 2022 at 4:25 PM OLIVA Adrien <[email protected]> wrote:

> Hi,
>
> I found a "bug" in Unomi while doing some test.
> When a profile object is stored as event's target or source, Jackson
> failed to deserialize item while getting such events (through POST
> /cxs/events/search for instance).
>
> It appears that Profile deserializer is missing in CustomObjectMapper used
> in Unomi.
>
> How can I contribute to fix this issue.
>
> Regards.
>
>
>
> Adrien Oliva
> Ingénieur Logiciel
>
>                 ≡
>      S E F A S
> UNE MARQUE DE DOCAPOSTE
>
> 6 rue de l’étang - 90000 Belfort
> E-mail : [email protected]
> www.sefasinnovation.fr - www.docaposte.com
>
>
> Sefas est une marque de Docaposte, filiale du Groupe La Poste.
> Adoptez l’éco-attitude : n’imprimez que si cela vous semble
> nécessaire.
> Si vous recevez ce mail en dehors de vos heures de travail ou
> pendant vos congés, vous n’avez pas à y répondre immédiatement,
> sauf en cas d'urgence exceptionnelle.
>
>

Reply via email to