A url in this field contains the blacklisted domain ...'

Bug #811394 reported by Dirk Meyer
12
This bug affects 2 people
Affects Status Importance Assigned to Milestone
Mahara
Expired
Low
Unassigned

Bug Description

1.4
Mysql
Linux

When posting in a forum in a 1.4 I get this message when including links to external sites and strangely enough to internal files too. 'A url in this field contains the blacklisted domain ...' From doing some searches, at least two domains were not blacklisted from what I could tell.The problem is that it wont allow me to save the post.

In the site security section and both blacklist options not enabled, when I change the spam setting from 'advanced' to 'none' the message gets posted with the URLs in question.

Revision history for this message
Richard Mansfield (richard-mansfield) wrote :

Dirk, I can't reproduce this - does it happen every time you try to put any url into a forum post?

And it happens when you have both blacklist options off, and spam set to 'advanced'?

Changed in mahara:
status: New → Triaged
importance: Undecided → Medium
Revision history for this message
François Marier (fmarier) wrote :

Dirk, if you could tell us what the URLs were, it might help us reproduce the problem. Thanks.

Changed in mahara:
status: Triaged → Incomplete
Revision history for this message
Dirk Meyer (dirkca68) wrote :

Sorry for delay.

Seems to happen for any URL. Attached are two screen shots. Apache error log produces these two lines. I edited my ip and domain. Happy to lock for more log files but can't find them

my ip - - [20/Aug/2011:12:56:01 -0600] "POST /interaction/forum/edittopic.php?id=34 HTTP/1.1" 200 18832 "http://www.mydomain.com/interaction/forum/edittopic.php?id=34$
my ip - - [20/Aug/2011:12:58:12 -0600] "GET / HTTP/1.1" 200 24203 "http://www.mydomain.com/interaction/forum/edittopic.php?id=34" "Mozilla/5.0 (Macintosh; Intel Mac O$
$100101 Firefox/5.0.1"

Revision history for this message
Dirk Meyer (dirkca68) wrote :

second screen in which a forum post url points to a mahara.org forum post

Changed in mahara:
status: Incomplete → Triaged
Changed in mahara:
importance: Medium → Low
tags: added: antispam
Revision history for this message
Robert Lyon (robertl-9) wrote :

Can't replicate so will mark as invalid. If someone can replicate this problem then feel free to reopen it and please give instructions on how to replicate.

Changed in mahara:
status: Triaged → Invalid
Revision history for this message
David (dbell-3) wrote :

Exactly the same problem as Dirk in our mahara 1.7
Turned off both blacklist options and set spam to advanced.
Two URLs I tried to post into a forum today are
http://e360.yale.edu/
https://app.handprinter.org/
This has happened previously as well
Is it possibe this error occurs because we are using mahara in a windows rather than linux server?

Revision history for this message
Kristina Hoeppner (kris-hoeppner) wrote :

Hello David,

I cannot reproduce the issue on the Mahara demo site. It is running Mahara 1.10 on Linux and Postgres and is not on 1.7, but the anti-spam feature looks up URLs in online databases. Thus, I wouldn't think it had anything to do with your setup.

does it happen every time that you try to use these two URLs?

Cheers
Kristina

Revision history for this message
Aaron Wells (u-aaronw) wrote :

Hi David,

Looking at the code, the problem is that even if you turn off the Spamhaus and Surbl blacklists, "black.uribl.com" is hard-coded in place and can't be disabled.

If you don't want to run any blacklist checks, then you have two possible workarounds:

1. Set your anti-spam to "Simple". The only thing that Advanced does other than check those blacklists, is that it runs some DNS checks against any email addresses in the message.

2. Hack the file lib/antispam/AdvancedSpamTrap.php to remove 'black.uribl.com' from the list.

In the longer term... probably we should change the config for this, because it is misleading. I think probably what we should do is move the blacklists into a config-defaults.php setting. I'm guessing probably the reason it was done the way it is, is because dbl.spamhaus.org and multi.surbl.com have user agreements that you're supposed to look at before enabling them. But having tickboxes for those certainly gives the user the impression that unticking them should disable all blacklists, when in fact that is not the case.

Changed in mahara:
status: Invalid → Confirmed
tags: added: snack-sized
Revision history for this message
Christine Lampe (stinelampe) wrote :

Hi guys,

We've got a new installation of Mahara 1.10 and this issue creates the ironic issue that it is blacklisting Mahara.org on our Mahara site! Can't link or deep link the excellent user manual anywhere on the site, even in plain text. Hopefully we can hack the code as Aaron has suggested, but not everyone has a tech who can do that, so I'd humbly vote for a change to the config. (I'm not the tech, I'm the tech-irritant/Mahara manager).

Revision history for this message
Christine Lampe (stinelampe) wrote :

(Kristina, where I come from, 'guys' includes you and me!)

Revision history for this message
Aaron Wells (u-aaronw) wrote :

Hi Christine,

Are you specifically getting this error message?: "A url in this field contains the blacklisted domain ..."

I just took a look and neither mahara.org or manual.mahara.org is listed in any of the three blacklist databases that we check against.

So it seems more likely that maybe what you're seeing is the new user probation system. Which would instead give you this error message: "Sorry, newly registered users aren't allowed to post links. Please reword your post to remove any links or URLs and try again."

Please let me know which error message you're seeing.

Cheers,
Aaron

Revision history for this message
Kristina Hoeppner (kris-hoeppner) wrote :

Hello Christien,

I assumed as much. :-) Hope you have time to check the exact error message.

Cheers
Kristina

Aaron Wells (u-aaronw)
Changed in mahara:
status: Confirmed → Incomplete
Revision history for this message
Launchpad Janitor (janitor) wrote :

[Expired for Mahara because there has been no activity for 60 days.]

Changed in mahara:
status: Incomplete → Expired
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.