Copied to clipboard

Flag this post as spam?

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

  • Ben 6 posts 97 karma points
    Jun 21, 2019 @ 23:26

    Bug When Editing A Tag Name


    I am experiencing a bug with TagManager (5.1) on Umbraco (7.14) where, after editing one of the tags, the tag becomes corrupt (see screenshot below).

    The issue occurred when I renamed one of the tags. Only the renamed tag is affected, the tags on the other nodes are still intact.

    I was using Umbraco tags without the plugin installed for quite some time, and this issue did not occur. It was only after installing TagManger and renaming a tag that the bug appeared.

    The tags property editor is using the Umbraco defaults e.g. it uses the "default" tag group and is set to store the tags as JSON.

    The project I am working on heavily relies on tags, so having the ability to rename, merge and delete tags would be very beneficial. If there is anything that I can do to help in diagnosing the problem, please let me know.

    Kind regards Ben

    Screenshot of the tag after renaming it via TagManager

  • Ben 6 posts 97 karma points
    Jun 22, 2019 @ 00:00

    I have just done some more testing and I think I have found the problem.

    The problem is caused by the property editor saving the tags as JSON. The tags property was updated in Umbraco 7.12 to save tags as JSON by default, pre version 7.12 it would save the tags as a CSV.

    More information can be found on the release page here. Look for U4-11497 under features.

    To test this I created two tag inputs, one uses the default tag property and the other is a custom property that saves tags in CSV format.

    I created a tag titled "test" in both of these editors, then, I went to Tag Manager and renamed both tags to "test edited".

    The CSV property was updated correctly, however, the JSON property was split (see screenshot).

    two tag property editors, one has the bug, the other has updated as expected I could move over to using CSV for my tags but the CSV option is now labelled as a "legacy" in the backend.

    It would be great to get a fix for this, if possible.

    Kind regards Ben

  • Nigel Wilson 944 posts 2076 karma points
    Jun 22, 2019 @ 07:43
    Nigel Wilson

    Hi Ben

    Thanks for your time and input on this one. I had been looking into it a while ago but got distracted by life and not come back to it.

    Whilst not at the same point of debugging as you I had come to the conclusion my code needed to handle the JSON / CSV config for tags and that it might be the reason it was failing.

    I had played with some native SQL to update tags, but that felt dirty as it was bypassing Umbraco Core and so a bit risky.

    Based on your findings I will investigate if/how to determine the tag setup and from there save it accordingly.



  • Ben 6 posts 97 karma points
    Jun 23, 2019 @ 04:15

    Hi Nigel

    I'm not very proficient with C#, but if I can help in any way, (testing etc) please let me know.

    Tag Manager is such a great package and makes Umbraco tags so much easier to work with. Thank you for all of the time and effort you have spent developing it. :)

    Kind regards Ben

Please Sign in or register to post replies

Write your reply to: