Problems with site wide comments switched off and people trying to post to it

While doing some testing I have come across the following problem, when site wide commenting is switched off and someone tries to post something the redirection is throwing an IIS error.

When I did a dump this is what I see

http://127.0.0.1:81/blog/ContentBox-V104-beta-released-how-does-it-stack-up

Which is called from the following dump

writeDump(CBHelper.linkContent( thisContent )); abort;

The problem with this is that the setNextEvent will not redirect based on the information shown above, because the domain address and http should not be part of the event. It looks like this bug has been around for a long time from what I can tell.

While doing some testing I have come across the following problem, when site wide commenting is switched off and someone tries to post something the redirection is throwing an IIS error.

When I did a dump this is what I see

http://127.0.0.1:81/blog/ContentBox-V104-beta-released-how-does-it-stack-up

Which is called from the following dump

writeDump(CBHelper.linkContent( thisContent )); abort;

The problem with this is that the setNextEvent will not redirect based on the information shown above, because the domain address and http should not be part of the event. It looks like this bug has been around for a long time from what I can tell.

Sure…

In the method validateCommentPost there is the following code

if( NOT CBHelper.isCommentsEnabled( thisContent ) ){
getPlugin(“MessageBox”).warn(“Comments are disabled! So you can’t post any!”);
setNextEvent( CBHelper.linkContent( thisContent ) );
}

What happens is that the CBHelper.linkContent() returns the full URL and not an event, therefore when it then is passed to the setNextEvent IIS cracks it because it looks like this

http://www.andyscott.id.au/http://www/andyscott/id/au/slug

Now that should be clear…

Regards,
Andrew Scott
WebSite: http://www.andyscott.id.au/
Google+: http://plus.google.com/113032480415921517411

Perfect. Can you submit an issue or this. Easy fix. Just say setnextevent(URL=

Also when are you going to get into Git and submit pull requests :slight_smile:

Luis Majano
CEO
Ortus Solutions, Corp
www.ortussolutions.com

ColdBox Platform: http://www.coldbox.org
Linked In: http://www.linkedin.com/pub/3/731/483
Social: twitter.com/ortussolutions | twitter.com/coldbox | twitter.com/lmajano

Not sure it is that simple, I tried that and I am still getting the same issue… But I then also tried to comment it out and placed an abort there and I am still getting the same problem.

It is like the changes are not being reloaded for some reason, even though I have said reload application. I even tried changing the application name and still it refuses to load the new changes.

Something seems to be really fishy here.

Regards,
Andrew Scott
WebSite: http://www.andyscott.id.au/
Google+: http://plus.google.com/113032480415921517411

Yep that was the fix…

The problem was I was editing the baseContentHandler.cfc and not the content.cfc

So my guess is that they both should be url =

Regards,
Andrew Scott
WebSite: http://www.andyscott.id.au/
Google+: http://plus.google.com/113032480415921517411

The other thing that I have noticed is that the messagebox is also not displaying, before I go looking is this because comments are switched off? If I recall right, the messagebox is only displayed inside the comments section.

Regards,
Andrew Scott
WebSite: http://www.andyscott.id.au/
Google+: http://plus.google.com/113032480415921517411