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 ForumsRepositoryRepositoryRepository file location paths held as absolute value???!!!Repository file location paths held as absolute value???!!!
Previous
 
Next
New Post
5/10/2008 9:43 PM
 

Hi,

I've just run across something that caused us no end of grief and I'd like to share it with you all so it's on public record. I think it's a bug, but others may disagree or there may be a very good reason it's done this way.

We were setting up a test site for a very large repository for regression tetsing before migrating to the latest version.

We did this by copying the existing site to a test location, and then running through the upgrade on the test site. All seemed to go OK, but we kept getting problems where files were reported missing when downloads were attempted. Then to our suprise, we got the same issue on the live site which had never had a problem. To cut a long story short eventually it was noticed that the file location being requested from both sites was the SAME. In other words, the test site was still pointing at the live filestore!

It didn't take long then to work out why. In the ModuleSettings table all the locations for the repository folder are held as FULL path names. i.e. as  "D:\httproot\livesite\portals\0\Repository\whatever".  Obviously, the location for the testsite needed to point to its filestore, NOT the live site.

It didn't take long to fix the table up with a script, but it's taken a whole heap longer to sort out which files should be where between the live and test sites. Very nasty!

This to me is an obvious bug. The repository folder locations surely should be held in the tables in a PORTALROOT relative form, not as an absolute filestore path.

Thoughts, anyone?

Regards,

Graham

 
New Post
5/10/2008 10:32 PM
 
Sorry it caused you grief, but it's not a bug. It was designed that way to specifically allow you to place the file either inside or outside the portal root for security purposes. You could actually put your repository files completely outside your web root making sure that no one could access the files except via the module.


 
New Post
5/10/2008 10:55 PM
 

Steve,

OK, I can see the logic behind that.  I guess I don't need to point out that this has implications for the portability of a repository between sites and / or servers. Hopefully this post will provide sufficient visibility of the fact so no-one else will trip across it like I did.

Regards,

Graham

 
Previous
 
Next
HomeHomeDNN Open Source...DNN Open Source...Module ForumsModule ForumsRepositoryRepositoryRepository file location paths held as absolute value???!!!Repository file location paths held as absolute value???!!!


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