[GH-ISSUE #417] Keywords and Black/Whitelist filtering are applied at different times #297

Open
opened 2026-02-28 01:24:02 +03:00 by kerem · 1 comment
Owner

Originally created by @alxndrsn on GitHub (Apr 7, 2016).
Original GitHub issue: https://github.com/ushahidi/SMSSync/issues/417

White and blacklists are processed before a message is set as pending: https://github.com/ushahidi/SMSSync/blob/master/smssync/src/main/java/org/addhen/smssync/data/message/PostMessage.java#L88

Keyword processing is done just before a message is forwarded to the sync url:
https://github.com/ushahidi/SMSSync/blob/master/smssync/src/main/java/org/addhen/smssync/data/message/PostMessage.java#L318

This means that a message which fails to sync first time will pass through the keyword filter a second time. This means that if the keyword have changed, a message which previously passed the filters could then subsequently fail them, or vice versa.

Originally created by @alxndrsn on GitHub (Apr 7, 2016). Original GitHub issue: https://github.com/ushahidi/SMSSync/issues/417 White and blacklists are processed before a message is set as pending: https://github.com/ushahidi/SMSSync/blob/master/smssync/src/main/java/org/addhen/smssync/data/message/PostMessage.java#L88 Keyword processing is done just before a message is forwarded to the sync url: https://github.com/ushahidi/SMSSync/blob/master/smssync/src/main/java/org/addhen/smssync/data/message/PostMessage.java#L318 This means that a message which fails to sync first time will pass through the keyword filter a second time. This means that if the keyword have changed, a message which previously passed the filters could then subsequently fail them, or vice versa.
Author
Owner
<!-- gh-comment-id:207059604 --> @alxndrsn commented on GitHub (Apr 7, 2016): Similar code in https://github.com/ushahidi/SMSSync/blob/master/smssync/src/main/java/org/addhen/smssync/data/message/TweetMessage.java
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/SMSSync#297
No description provided.