Create new FromFilter that checks for exact matching

Description

Since FromContainsFilter checks if a given text is included in the FROM JID then it is possible to obtain "unexpected" results if you have JIDs like this myusername@server.com and username@server.com where the filter is filtering by username. As you can see both JIDs will match the filter.

This problem generates this reported issue:
http://www.jivesoftware.org/forums/thread.jspa?threadID=15362&tstart=0

Environment

None

Activity

Show:

Lars Noschinski 
March 5, 2014 at 6:41 AM

This issue is not fixed yet. There are still occurrences of the broken FromContainsFilter class. Moreover, FromMatchesFilter configured for e.g. "foo@example.com" matches not only

foo@example.com
foo@example.com/arbitrary-resource

as expected, but also foo@example.comm.net.

Fixed

Details

Assignee

Reporter

Components

Fix versions

Affects versions

Priority

Created August 10, 2005 at 11:10 AM
Updated August 17, 2014 at 1:11 PM
Resolved March 9, 2014 at 10:55 PM

Flag notifications