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 ForumsRepositoryRepositoryClicking moderator button causes errorClicking moderator button causes error
Previous
 
Next
New Post
7/10/2007 4:20 PM
 

MHuijbregts wrote

When i have Scott's Friendly URL disabled i have no problem to moderate.

So Steve, don't worry

 

Marc

Does it mean that people who use Ventrian friendly module are left on the side road ?  
I am sure that many people use Friendly URL from Ventrian.

DV

 
New Post
7/10/2007 7:12 PM
 

You're right DV a lot do (including myself) but on the other side of the coin the code change was done to the Repository for security reasons. At one point the FriendlyURL rewriter had problems with multiple parameters and as far as I know it still has them. I don't remember seeing anything on Scott's forum about it being fixed and I'm pretty sure that's part of the problem here. On the other side of the coin, you're expecting Steve to change the Repository code to work with FriendlyURLs (another 3rd party module) but have you asked Scott to look at the code from his end? I haven't seen any posts on his forums about it.

 
New Post
7/11/2007 3:29 AM
 

Yes, I agree with your remarks, but once you use Friendly URLs, you can not de-activate it, you agree ? Otherwise, lots of other people are pointing to your site and do not reach your page...

I submitted yesterday night a post into the forum of Scott for this problem, but there was server problem when submitting it. And my message was lost (lot of texts and indication) !!  I did not want to post it again (I am lazy...). I have just done so right now...
;-)

 

DV

 
New Post
7/11/2007 4:34 AM
 

What does the moderate URL look like? (when friendlu urls are disabled).

This is where we can start to work out what is happening..


Scott McCulloch
Developer, F5 Networks
Owner, Ventrian DotNetNuke Modules
 
New Post
7/11/2007 5:39 AM
 

Scott, maybe you can save me some detective work ... would anything in the way I'm doing this cause a problem with your utlility?

First, when the moderate button is pressed on the repository.ascx control, the following code is executed.

Dim destUrl As String = EditUrl("", "", "Moderate", "pid=" & PortalId, "mid=" & ModuleId)
Response.Redirect(destUrl)

Then in Moderate.ascx.vb., I use the parameters in the Page_Load to verify that the current user is logged in and is a member of the moderator roles...

Dim bCanModerate As Boolean = False
Try
  If HttpContext.Current.User.Identity.IsAuthenticated Then
    bCanModerate = oRepositoryBusinessController.IsTrusted(Request.QueryString("pid"), Request.QueryString("mid"))
  End If
Catch ex As Exception
End Try

If Not bCanModerate Then
  Response.Redirect(NavigateURL("Access Denied"), True)
End If

As you can see, I wrapped the check in a Try-Catch block so even if the qs params are lost, it should not throw a visible exception, just default to the 'Access denied' page.

Those were the only changes between 3.01.12 ( in which everything appears to work just fine ) and 3.01.13 ( in which case is doesn't )

I will try and install your utility tonight and see what's throwing the exception, but in the meantime if something 'pops' out at you as a potential problem, I'd appreciate a point in the right direction.

 
Previous
 
Next
HomeHomeDNN Open Source...DNN Open Source...Module ForumsModule ForumsRepositoryRepositoryClicking moderator button causes errorClicking moderator button causes error


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