Join our community!

Get everything you need to start developing EPiServer solutions.

Image-picker property deletes all langversions

February 8 2013, 12:19

This is a really scary bug. I'm using a image-picker propertylike this:

[UIHint(UIHint.Image)]
        [CultureSpecific]
        public virtual Url MyImage { get; set; }

My site is using multilanguage and this one is CultureSpecific

When editing in EPiServer, everything works fine as long as you just use the ...-button to edit the imageurl. BUT if I instead select the url directly in the textfield (by Cut/Paste for example), all propertydata for all languages disappears from database. When publishing the page, the property is gone for all other languages.

I'm inspecting whats happens by making this query in the database:

SELECT *
  FROM [tblContentProperty]
  where fkcontentid = [PAGEID THAT I'M EDITING]
  and fkPropertydefinitionid = [PROPERTYDEFINITIONID]

I can see a row for every language I got on my site, but once I make a Ctrl-X in the inputfield on imagepicker, all rows disapears! Notice that I didn't even publish anything.

If i then select my image, it's only published on the current language, all other languages are gone

 

 


  • February 8 2013, 15:18

    Thanks for the bug report. I have filed the following bug that we will investigate on monday:

    Bug #95686: Manually typing an URL to an image on an image property might delete data for the content
  • February 25 2013, 10:13

    Hi,

    I am unable to reproduce this problem, do you have any more detailed step by step on how I can reproduce ?

    What I tested was:

    - Install Alloy
    - Add above property definition to ArticlePage
    - Enable English + Swedish
    - Create a new page of type Article
    - Select a file on both languages (without publishing any of them)
    - Now do a CTRL-X to empty the property on one of the languages

    I checked the database and when I removed the value from one of the languages in was not removed from the other language.

     

  • February 25 2013, 11:55

    I just tested on clean Alloy-site and still gets the error. I've tracked the requests that was done in Firebug, maybe these could help

    https://docs.google.com/file/d/0B1GzO91ZdUbzcGY2WGZFTEVaY0k/edit?usp=sharing

    https://docs.google.com/file/d/0B1GzO91ZdUbzNS13LXlqZ3BKOHM/edit?usp=sharing

  • February 25 2013, 13:10

    Can this issue ber browser related? I just tested the same thing in IE9, and I cannot even select the text. So the issue is only reproduced in Chrome and Firefox

  • February 25 2013, 13:35

    Can you write down a 1,2,3 on how to you reproduce this on the clean Alloy-site ? I am problably missing some steps here, I tested with Chrome as well.

     

     

     

  • February 25 2013, 15:27

    I created a movie that demonstrates exactly the steps I make. I installed a new instance of Alloy just to make sure it's really clean. This is not a multilanguage-site, I realized that the issue appears on a singlelang-site too.

    https://vimeo.com/60450717

  • February 25 2013, 15:40

    I also reproduced the issue on your demosite: http://alloy.demo.episerver.com. I did this on on the contact-page (teser-image) for "Robert Carlsson" and as you can see, the image is gone here: http://alloy.demo.episerver.com/About-us/Management/

  • February 25 2013, 16:44

    Awesome - thanks, turns out it was already fixed on the build I was testing on. It will be part of Patch 2 for EPiServer 7.

    #92672 Empty property value also removes published value (on master language)