Tim Long

Forever in Electric Dreams
The life and times of a Small Business Server MVP and all-round technology enthusiast. Tim is founder of TiGra Networks, a company based in South Wales UK specialising in small business IT. This blog is aimed at Microsoft Small Business Specialists, IT professionals, Astronomers and anyone interested in science and technology.

Recent Posts

Tags

News

  • We are experiencing technical difficulties with images in our blog posts due to an incompatibility between Windows Live Writer and Community Server 2008. If the images seem to be incorrect, this will be why. There is a workaround available but it will take a little time for us to schedule this upgrade into our server. Please bear with us until then. Locations of visitors to this page
    View Tim Long's profile on LinkedIn

Community

Email Notifications

TiGra Networks

My Family

Photo Galleries

SBS Groupies

Archives

Windows Live Writer and Community Server 2008

I’ve been having an issue with my blog since we upgraded to Community Server 2008. CS2008 uses a new filing system on the server and when posting entries containing images, the new filing system is confusing Live Writer, the result is that old images get overwritten, so old blog posts suddenly have their images changed. If you look back over my last few blog entries you’ll see the problem. I’ve tried hard to raise the issue with both the Live Writer and Community Server teams but I’m not sure how effective that will be. We just have to wait in line and see if this gets fixed.

The problem is this: in Community Server 2007 blog images were uploaded to a folder called

/blogs/<blog-name>/WindowsLiveWriter/<entry-title>/Image_N.<ext>

where N is a sequence number that starts at 1 for each new blog entry and increments for each new image. In Community Server 2008 there is a new way of storing blog files, the new upload folder is:

/filestorage/CommunityServer.Blogs.Components.WeblogFiles/<blog-name>/Image_N.<ext>

imageAs you can see, the folder structure is much flatter and results in all images ending up in the same folder. Remember that Live Writer always resets its sequence number to 1 for each new blog entry and it should be clear that the generated file names are no longer unique. This results in old images being overwritten, a data loss condition.

It is not clear whether this is a Community Server problem or a Live Writer problem, but Community Server was the variable that changed and broke a working system, so I reckon they should probably take responsibility for fixing it.

One happy accident that came out of investigating this is that I discovered a new technical preview of Windows Live Writer that was released back in June. It has some nice new features like auto-linking to items in your link glossary and the ability to crop and rotate images. You can download the preview. I wonder how many of my previous posts this image will ruin?

Comments

Tim Long said:

Update: Scott Lovegrove (Windows Live Platform MVP) suggested a workaround. Instead of using copy & paste to put images into a blog post, first save the image to disk (Windows Vista's built in screen clipping tool allows you to save a screen clipping easily). Then you can rename the file and give it a unitque name, for example add the date and time to the filename. THen use Windows Live Writer's "Insert Image" command and select the file on disk. LiveWriter will then use the saved file name instead of generating a name with a sequence number.

The extra steps are a bit of a nuisance, but at least we have a workaround.

# July 21, 2008 1:44 PM

TechieNick said:

I've just posted a fix on dev.communityserver.com/.../627499.aspx

# July 24, 2008 3:57 PM

Tim Long said:

Thanks for stepping up to the plate, Nick. I was very disappointed by the response I got from Telligent support, which was basically "tough luck".

I will need to integrate your changes into my source tree rather than just replacing the file, because I've retargeted my CS to .NET 3.5 so I can use Silverlight. I'll be doing this right away.

# July 24, 2008 4:00 PM
Leave a Comment

(required) 

(required) 

(optional)

(required)