Products

Solutions

Resources

Partners

Community

Blog

About

QA

Ideas Test

New Community Website

Ordinarily, you'd be at the right spot, but we've recently launched a brand new community website... For the community, by the community.

Yay... Take Me to the Community!

Welcome to the DNN Community Forums, your preferred source of online community support for all things related to DNN.
In order to participate you must be a registered DNNizen

HomeHomeDNN Open Source...DNN Open Source...Module ForumsModule ForumsGalleryGalleryBug In Gallery 3.0.12 Path HandlingBug In Gallery 3.0.12 Path Handling
Previous
 
Next
New Post
8/15/2006 4:05 AM
 
The function BuildPath in the Utilities\Utilities.vb file incorrectly attempts to clean the path of double delimeters - ordinarily this would be fine, except when the path is a UNC share name, it strips off the leading slash and then when methods subsequently try to use the path for file IO they end up trying to work on a local drive, since the .net framework classes interpet a path starting with a single slash as meaning the root of the local disk.

To reproduce, create a vdir in IIS and use a UNC share on a different machine as the location (I'll assume you can set up all the proper permissions for doing this), then install a portal into the vdir. Install the gallery module and drop it onto a page. The page will fail to load with a null reference exception and examining the log will show that it is trying to access a local disk location instead of the share path when it initializes the default gallery folder.

To be sure, I commented out the line "output.Replace(Delimiter & Delimiter, Delimiter)" in the function and dropped it into my portal. Sure enough, the gallery initialized without a problem.
 
New Post
12/14/2006 10:41 AM
 
I'm running 4.3.5 and I can't find output.Replace(Delimiter & Delimiter, Delimiter) or the Utilities\Utilities.vb  file anywhere.  Is the utilities folder under the root folder or under the gallery project?
 
New Post
12/15/2006 12:14 AM
 

First... you will need the source code as that file is not distributed with the regular release (get the source code from the DNN website for free)

Then, the file is located in the Components\Utilties\ directory

 

 
Previous
 
Next
HomeHomeDNN Open Source...DNN Open Source...Module ForumsModule ForumsGalleryGalleryBug In Gallery 3.0.12 Path HandlingBug In Gallery 3.0.12 Path Handling


These Forums are dedicated to discussion of DNN Platform and Evoq Solutions.

For the benefit of the community and to protect the integrity of the ecosystem, please observe the following posting guidelines:

  1. No Advertising. This includes promotion of commercial and non-commercial products or services which are not directly related to DNN.
  2. No vendor trolling / poaching. If someone posts about a vendor issue, allow the vendor or other customers to respond. Any post that looks like trolling / poaching will be removed.
  3. Discussion or promotion of DNN Platform product releases under a different brand name are strictly prohibited.
  4. No Flaming or Trolling.
  5. No Profanity, Racism, or Prejudice.
  6. Site Moderators have the final word on approving / removing a thread or post or comment.
  7. English language posting only, please.
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out