Small width layout Medium width layout Maximum width layout Small text Medium text Large text
     Search
Downloads Downloads Directory Directory Forums Forums Forge Forge Blogs Blogs        Marketplace Marketplace Careers Program Careers
Community › Forums Register  |  

Affordable ASP.NET Hosting Service
  Ads  
 


  Sponsors  

Meet Our Sponsors

SmarterTools
The Official Microsoft ASP.NET Website
Portal Webhosting - Hosting For Developers
Red-Gate Software
MaximumASP
SourceGear - Tools for Developers
 


DotNetNuke Forums
 
  Forum  DotNetNuke® Pro...  Repository Modu...  Repository file location paths held as absolute value???!!!
Previous Previous
 
Next Next
New Post 5/10/2008 7:43 PM
User is offline Graham Lewis
39 posts
www.epicmultimedia.com.au
10th Ranked


Repository file location paths held as absolute value???!!! 

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 8:32 PM
User is offline Steve Fabian
1498 posts
6th Ranked








Re: Repository file location paths held as absolute value???!!! 
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.



Steve Fabian
Gooddogs.com
Sit, Stay, Code ... Good boy!
 
New Post 5/10/2008 8:55 PM
User is offline Graham Lewis
39 posts
www.epicmultimedia.com.au
10th Ranked


Re: Repository file location paths held as absolute value???!!! 

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 Previous
 
Next Next
  Forum  DotNetNuke® Pro...  Repository Modu...  Repository file location paths held as absolute value???!!!
 


Forum Policy

These Discussion Forums are dedicated to the discussion of the DotNetNuke Web Application Framework.

For the benefit of the community and to protect the integrity of the project, 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 DotNetNuke.
2. Discussion or promotion of DotNetNuke product releases under a different brand name are strictly prohibited.
3. No Flaming or Trolling.
4. No Profanity, Racism, or Prejudice.
5. Site Moderators have the final word on approving/removing a thread or post or comment.
6. English language posting only, please.

 


DNNCovered.com - Your Offshore Dotnetnuke Partner
Dnncovered.com is the only Dotnetnuke offshore outsourcing center specializes in DNN skinning and module development with lowest pricing and quality service. Our staff is dedicated to websites based on DNN and our graphic designers are creative and imaginative well enough to provide customers the complete set of skinning solutions and packages
www.dnncovered.com
PointClick.Net DNN Solutions
DotNetNuke Hosting Platform for Business and personal use.
PointClick.Net Hosted Solutions
Advanced Web Portals by Infoscaler
Infoscaler is a California based company that provides advanced Web Portals, E-commerce Sites, Database Applications and Intranet Solutions on the DotNetNuke and Microsoft.NET platforms.
www.infoscaler.com

DotNetNuke Corporation   Terms Of Use  Privacy Statement
DotNetNuke®, DNN®, and the DotNetNuke logo are trademarks of DotNetNuke Corporation
Hosted by MaximumASP