godaddy _db_backups folder

This is the place to report bugs and get support. When posting in this forum, please always provide as much detail as possible.

Please do not report problems with a custom build or custom code in this forum. If you are producing your own build from the source code and have problems or questions, ask in the developer forum, do not report it as a bug.

This is the place to report bugs and get support

When posting in this forum, please try to provide as many relevant details as possible. Particularly the following:

  • What operating system were you running when the bug appeared?
  • What database platform is your site using?
  • What version of mojoPortal are you running?
  • What version of .NET do you use?
  • What steps are necessary to reproduce the issue? Compare expected results vs actual results.
Please do not report problems with a custom build or custom code in this forum. If you are producing your own build from the source code and have problems or questions, ask in the developer forum.
This thread is closed to new posts. You must sign in to post in the forums.
8/25/2008 12:25:39 AM
Gravatar
Total Posts 15

godaddy _db_backups folder

I managed to get mojoportal installed on godaddy.  Now, in admin mode when I edit a page, check show breadcrumbs and save changes.  The page returns an error denying access to _db_backups folder.  This is a folder installed by godaddy.  Can't delete or set permissions on it.  It must be a folder required by godaddy to allow backupp of dbs.  How do I fix this?  Or a workaround to bypass _db_backups folder operations?

8/25/2008 11:46:04 AM
Gravatar
Total Posts 18439

Re: godaddy _db_backups folder

Hi,

There is nothing in mojoportal that does anything with a folder named _db_backups. mojoPortal doesn't even know about that folder so I don't see how mojoportal could be causing this error.

Best,

Joe

8/25/2008 2:46:40 PM
Gravatar
Total Posts 15

Re: godaddy _db_backups folder

Thanks for the reponse Joe.

Hmmm... this is interesting.  I installed mojoportal pretty much out of the box using the web.mediumtrust.config, granting write access to Data folder and its children, removed two dlls - OpenId and SqlLite.  DefaultSetup is now set to false.  I will look at it again.  Kind of odd if you ask me.

8/25/2008 8:02:04 PM
Gravatar
Total Posts 15

Re: godaddy _db_backups folder

Here's the error -

[UnauthorizedAccessException: Access to the path 'd:\hosting\**********\_db_backups' is denied.]
System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath) +651
System.IO.Directory.InternalGetFileDirectoryNames(String path, String userPathOriginal, String searchPattern, Boolean includeFiles, Boolean includeDirs, SearchOption searchOption) +1559
System.IO.DirectoryInfo.GetFiles(String searchPattern, SearchOption searchOption) +58
System.IO.DirectoryInfo.GetFiles(String searchPattern) +6
mojoPortal.Web.WebPageInfo.AddPhysicalPages(Collection`1 physicalPages, DirectoryInfo directoryInfo, String fileExtensionPattern) in WebPageInfo.cs:203
mojoPortal.Web.WebPageInfo.PopulatePagesCollection(HttpContext httpContext, Collection`1 webPages, String fileExtensionPattern) in WebPageInfo.cs:160
mojoPortal.Web.WebPageInfo.LoadPhysicalPages(String fileExtensionPattern) in WebPageInfo.cs:129
mojoPortal.Web.WebPageInfo.GetPhysicalPages(String fileExtensionPattern) in WebPageInfo.cs:96
mojoPortal.Web.WebPageInfo.GetPhysicalPages() in WebPageInfo.cs:80
mojoPortal.Web.WebPageInfo.IsPhysicalWebPage(String url) in WebPageInfo.cs:214
mojoPortal.Web.AdminUI.PageProperties.SavePageData() in PageSettings.aspx.cs:642
mojoPortal.Web.AdminUI.PageProperties.Apply_Click(Object sender, EventArgs e) in PageSettings.aspx.cs:439
System.Web.UI.WebControls.Button.OnClick(EventArgs e) +105
System.Web.UI.WebControls.Button.RaisePostBackEvent(String eventArgument) +107
System.Web.UI.WebControls.Button.System.Web.UI.IPostBackEventHandler.RaisePostBackEvent(String eventArgument) +7
System.Web.UI.Page.RaisePostBackEvent(IPostBackEventHandler sourceControl, String eventArgument) +11
System.Web.UI.Page.RaisePostBackEvent(NameValueCollection postData) +33
System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +1746
 

8/25/2008 8:20:38 PM
Gravatar
Total Posts 15

Re: godaddy _db_backups folder

I think we need to overload PopulatePagesCollection method and add a folder exclusion list to the parameters list.

8/26/2008 5:00:43 AM
Gravatar
Total Posts 18439

Re: godaddy _db_backups folder

Hi Dave,

Yes its much clearer now what the problem is since you posted the error.

I forgot about this, we loop through existing files to make sure no virtual urls are created that would mask physical files. I hadn't thought about how common it may be for there to be folders in the root that we don't have read permission on.

I'm fixing this right now in my local copy by catching UnAuthorizedAccessException and SecurityException in places where this could happen as indicated by the error message.

It will be fixed in svn trunk by tonight and will be fixed in the next release.

Thanks,

Joe

8/26/2008 2:55:44 PM
Gravatar
Total Posts 15

Re: godaddy _db_backups folder

Thanks Joe!  I will be looking for it tonight.

You must sign in to post in the forums. This thread is closed to new posts.