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 ForumsLinksLinksAnother Another bug in the Links moduleAnother Another bug in the Links module
Previous
 
Next
New Post
9/28/2006 4:30 PM
 
pgp wrote

dstruve,

Since you're maintaining so many portals just wondering if you've run into the problem discussed under the thread subject 'File upload permissions'.

This problem is associated with uploading and overwritting an existing file in the \portals\0\ folder. The file in is NOT read-only and can be overwritten in NTFS. 

The problem presents even if logged in as host or admin.  There is no problem uploading a file as long as another file with the same name does NOT already exist in the folder.

City of Wilmington sure need a fix for this bug and soon.

Thanks

 

I created a addpermissions.aspx to set all the permissions to all users.

 you will need to create some form objects to put the low and high portal ids you want check.

Here is code

Public Class WebForm1

Inherits System.Web.UI.Page

#Region " Web Form Designer Generated Code "

'This call is required by the Web Form Designer.

<System.Diagnostics.DebuggerStepThrough()> Private Sub InitializeComponent()

End Sub

Protected WithEvents txtportalid As System.Web.UI.WebControls.TextBox

Protected WithEvents Button1 As System.Web.UI.WebControls.Button

Protected WithEvents txtendportalid As System.Web.UI.WebControls.TextBox

Protected WithEvents Label1 As System.Web.UI.WebControls.Label

'NOTE: The following placeholder declaration is required by the Web Form Designer.

'Do not delete or move it.

Private designerPlaceholderDeclaration As System.Object

Private Sub Page_Init(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Init

'CODEGEN: This method call is required by the Web Form Designer

'Do not modify it using the code editor.

InitializeComponent()

End Sub

#End Region

Private Sub Page_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load

'Put user code to initialize the page here

End Sub

Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click

Dim strProviderPath As String = PortalSettings.GetProviderPath()

Dim installMemberRole As Boolean = True

Dim objPortalController As New PortalController

Dim arrPortals As ArrayList

arrPortals = objPortalController.GetPortals()

Me.Label1.Text = arrPortals.Count.ToString

Dim objportal As DotNetNuke.Entities.Portals.PortalInfo

Dim intReadFolderPermissionID As Integer

Dim objPermissionController As New DotNetNuke.Security.Permissions.PermissionController

Dim objPermission As New DotNetNuke.Security.Permissions.PermissionInfo

Dim objFolderController As New DotNetNuke.Services.FileSystem.FolderController

Dim objFolderPermissionController As New DotNetNuke.Security.Permissions.FolderPermissionController

Dim PortalCount As Integer

Dim toInte As Integer

Try

toInte = Convert.ToInt32(Me.txtendportalid.Text)

Catch ex As Exception

Exit Sub

End Try

Dim i As Integer

Try

i = Convert.ToInt32(Me.txtportalid.Text)

Catch ex As Exception

Exit Sub

End Try

While i < toInte

i += 1

objPortal = objPortalController.GetPortal(i)

If Not objportal Is Nothing Then

Dim folders As ArrayList = DotNetNuke.Common.Utilities.FileSystemUtils.GetFolders(objportal.PortalID)

For Each folder As DotNetNuke.Services.FileSystem.FolderInfo In folders

Dim FolderItem As New ListItem

Dim arr As ArrayList = objPermissionController.GetPermissionByCodeAndKey("SYSTEM_FOLDER", "READ")

For Each objPermission In arr

If objPermission.PermissionKey = "READ" Then

' add READ permissions to the All Users Role

FileSystemUtils.SetFolderPermission(objportal.PortalID, folder.FolderID, objPermission.PermissionID, Integer.Parse(glbRoleAllUsers), "")

Exit For

End If

Next

Next

End If

End While

End Sub

End Class


DotNetNuke Search Engine
ASP.Net Search Engine
Email me to add your favorite sites to the search List.
 
Previous
 
Next
HomeHomeDNN Open Source...DNN Open Source...Module ForumsModule ForumsLinksLinksAnother Another bug in the Links moduleAnother Another bug in the Links module


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