Copied to clipboard

Flag this post as spam?

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


  • fabrice 104 posts 227 karma points
    Jan 05, 2012 @ 11:09
    fabrice
    0

    UrlPicker : update from uComponent V2 to uComponent V3.xx failed

    Hello,

    I have asked the same question few weeks ago with no reply. But i'll try to detail a bit more my problem and hopefully someone will have an answer.

    I have a website with umbraco 4.7.1 and uComponent 2.1. Many existing nodes have one or more  UrlPickers saved as json serialized and values in them.

    If I look at the contentXml table for one of them I can see the following serialized json :

    <contactFormPage>
        <![CDATA[{"LinkTitle":"contact us","Mode":1,"NodeId":27793,"Url":"http://www.mywebsite.dk/contact/contact-form","NewWindow":false}]]>
    </contactFormPage>

    According to the uComponent documentation :

    "It is theoretically possible to perform a simple upgrade of uComponents from v1.0 by simply over-writing the current uComponents.Core.dll file..."

    and the UrlPicker documentation :

    "Note to current users: You should be able to upgrade to this version of URL Picker without any data loss from current nodes whatsoever."

    So (in my dev env) I have just replaced the my uComponent v2 dll to the v3.1 and rebuild my solution.

    And when I open the backend, all the URL Pickers have lost the title and all Urls have lost the nodeId

    When I publish the nodes, the contentXml for my contact form is now (v3) :

    <contactFormPage>
        <![CDATA[{"Title":"","Mode":1,"NodeId":null,"Url":"http://www.kilroy.dk.local.novicell.dk/contact","NewWindow":false}]]>
    </contactFormPage>

    As you can see, Title didn't take the value of LinkTitle and NodeId is null....

    Question : does someone has a migration script ? or do you have any suggestions on how I should code one ?

    Thank you very much !

    Fabrice

     

     


     

     

  • Lee Kelleher 4026 posts 15836 karma points MVP 13x admin c-trib
    Jan 05, 2012 @ 14:32
    Lee Kelleher
    0

    Hi Fabrice,

    Apologies for not picking up on your previous post about this.  I'm not sure what the cause of the problem is - as I didn't develop the UrlPicker data-type.

    Best bet for a resolution is to raise a bug on our CodePlex - http://ucomponents.codeplex.com/WorkItem/Create - I'll assign it to the developer who worked on UrlPicker, and hopefully figure out what is causing the issue.

    Thanks, Lee.

  • fabrice 104 posts 227 karma points
    Jan 05, 2012 @ 14:37
    fabrice
    1

    Super, thank you very much.

    I have created the issue here : http://ucomponents.codeplex.com/workitem/14621

    Best Regards,

    Fabrice

  • fabrice 104 posts 227 karma points
    Jan 09, 2012 @ 09:53
    fabrice
    0

    Hello,

    "diachedelic" was corrected the bug on LinkTitle but there is still a bug with the Mode :

    The "Mode" field doesn't mean the same in version 2.1 and version 3 that's why I can't get my values ok with I migrate from 2.1 to 3.

    In v2.1, Mode means :

    0 : url

    1: Content

    And in v3, Mode means :

    1: Url

    2: Content

     Any ideas how to solve this ?

    Thank you very much

    Fabrice

     

  • Lee Kelleher 4026 posts 15836 karma points MVP 13x admin c-trib
    Jan 09, 2012 @ 11:35
    Lee Kelleher
    0

    Hi Fabrice,

    I was not aware of that breaking change in UrlPicker (sorry).  I'd recommend keeping with the CodePlex workitem - hopefully James (diachedelic) might have a solution for you?

    Thanks, Lee.

Please Sign in or register to post replies

Write your reply to:

Draft