Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • Alaa Adel 3 posts 23 karma points
    Apr 16, 2020 @ 19:06
    Alaa Adel
    0

    Umbraco 8 Server-side validation - ContentService Events Handler

    Dears,

    I am new with umbraco 8 and tried to creating a Component to listen for ContentService.Saving event. Component implemented and works fine but i faced a wired issue. after validations fired and appeared on backoffice, new value still cached untill restart application pool.

    Example:

    1. I created a document type event, with title and thumbnail.
    2. I saved event with title = event 2
    3. I developed and subscribed component for ContentService.Saving event.
    4. I got back to backoffice and changed event title to be event 123 and tried to save, validation fires but i found that after refresh the page event title still event 123.
    5. If i restarted application pool, will remove cached data and and will find event title = event 2 again.

    enter image description here

    enter image description here

    enter image description here

    Thanks in advance

  • Jesper Weber 54 posts 170 karma points c-trib
    Jul 09, 2020 @ 09:09
    Jesper Weber
    0

    Hi,

    I'm experiencing exactly the same. Did you find a solution or have you reported this in the Umbraco issue tracker?

  • Jesper Weber 54 posts 170 karma points c-trib
    Jul 16, 2020 @ 10:05
    Jesper Weber
    0

    For future reference.

    I reported the issue but got the response that this is by design: https://github.com/umbraco/Umbraco-CMS/issues/8417

  • Bo Jacobsen 608 posts 2406 karma points
    Jul 16, 2020 @ 12:46
    Bo Jacobsen
    0

    That's just wrong in my option.

    If a saving event is cancelled, the data should not be apllied, after you leave the document unchanged.

  • Jesper Weber 54 posts 170 karma points c-trib
    Jul 17, 2020 @ 08:28
    Jesper Weber
    1

    FYI: The issue has been reopened.

Please Sign in or register to post replies

Write your reply to:

Draft