Developer forum

Forum » Dynamicweb 9.0 Upgrade issues » Group Image has double slash

Group Image has double slash

Imar Spaanjaars Dynamicweb Employee
Imar Spaanjaars
Reply

Hi there,

When I assign an image to an Ecommerce group, Dynamicweb stores the path as follows:

/Files/Images/GroupImages/Closeoutheader.jpg

When I retrieve the path using GetString("Ecom:Group.LargeImage") I get this:

/Files//Files/Images/GroupImages/Closeoutheader.jpg

Note the double slash. This in turn causes an issues with GetImage as this URL

/Admin/Public/GetImage.ashx?Image=/Files//Files/Images/GroupImages/Closeoutheader.jpg&Width=1810&altFmImage_path=/Files/Files/Images/Products/noImage.png&Format=jpg&Crop=5&Background=ffffff

now returns the error: "Can't process the file: /files//files/images/groupimages/closeoutheader.jpg."

Did something change in GetImage that would explain this difference? I have 9 running locally and 8 remotely. so maybe that explains the difference if it's not a difference in DW?

Thanks!

Imar


Replies

 
Nicolai Pedersen
Reply

Hm, neither ways it is a bug - seems like a concatenated string and not a pathcombine. It also looks like there is an extra /Files in there that does not belong, so my gues is that something is broken.

I'll send for verification and fixing.

Cheers from Schipol

 
Imar Spaanjaars Dynamicweb Employee
Imar Spaanjaars
Reply

Hi Nicolai,

I think the extra Files is fine; I pointed to an image from the Files folder of the File Archive, so it's path would be Files/Files.

I'll waive when you fly over!

Imar

 
Adrian Ursu Dynamicweb Employee
Adrian Ursu
Reply

Hi Guys,

This issues seems to be recurring.

In the past I often found weird scenarios. Without starting "/", with "//" even with aditional /Files in the link.. Even in the same solution, in the Items the links were rendered with 2 files: /Files/Files but in the product with just one /Files.

I actually have opened a case recently because we have found a path containing 3 rounds of files: /Files/Files/Files. And it happened in the latest DW9 solution. 9.2.12 using the wrap setup.

We had to acount for these exceptions in the past but almost everytime the bug was fixed, we had to review the code to remove the hack.

A bit of consistency would be very helpful.

Thanks,

Adrian

 
Oleg Rodionov
Reply

Hi all,

The issues will be fixed with TFS 33979 already submitted against Adrian case, probably.

BR, Oleg QA   

 
Imar Spaanjaars Dynamicweb Employee
Imar Spaanjaars
Reply

Thanks Oleg!

 
Kristian Kirkholt Dynamicweb Employee
Kristian Kirkholt
Reply

Hi Imar and Adrian

The problem TFS#33979 "Double / in Ecommerce default image path" has now been fixed in 9.2.15+ versions 

You are able to find this build in the download section:

http://doc.dynamicweb.com/releases-and-downloads/releases

Please contact Dynamicweb Support if you need any additional help regarding this.

Kind Regards
Dynamicweb Support
Kristian Kirkholt

 

You must be logged in to post in the forum