Edgewall Software
Modify

Opened 11 years ago

Last modified 10 years ago

#11268 new defect

Obfuscation of email address is not performed on search results

Reported by: thomas.akesson@… Owned by:
Priority: low Milestone: unscheduled
Component: search system Version: 1.0.1
Severity: minor Keywords: email obfuscation
Cc: Branch:
Release Notes:
API Changes:
Internal Changes:

Description

This ticket is different from #8473 (which addresses whether a search should include certain hits).

When search results are displayed, there is a short snippet of content from each hit. The email obfuscations is not performed on that snippet.

I have no personal issues with this bug, just reporting it for completeness.

Not quite sure about the version. I noticed it on this (Edgewall) trac instance.

Attachments (2)

Screen Shot 2013-08-04 at 21.56.36.png (128.7 KB ) - added by thomas.akesson@… 11 years ago.
Search result is not obfuscated.
Screen Shot 2013-08-04 at 21.57.13.png (108.8 KB ) - added by thomas.akesson@… 11 years ago.
But clicking the search hit will display it with obfuscation.

Download all attachments as: .zip

Change History (4)

by thomas.akesson@…, 11 years ago

Search result is not obfuscated.

by thomas.akesson@…, 11 years ago

But clicking the search hit will display it with obfuscation.

comment:1 by Ryan J Ollos, 11 years ago

Keywords: email obfuscation added

This is really just a special case of #1502.

I did some hunting around. The preparation of the search results is done by trac.search.api.shorten_result, and we can see that it doesn't take any care to obfuscate the email addresses, or do any other wiki formatting.

On the other hand the timeline renderer calls a formatter, passing a RenderingContext. We could probably utilize the OneLineFormatter after calling shorten_result. It looks like shorten_result just attempts to extract a segment of text around the first matching term.

Last edited 10 years ago by Ryan J Ollos (previous) (diff)

comment:2 by Jun Omae, 10 years ago

Milestone: unscheduled

Modify Ticket

Change Properties
Set your email in Preferences
Action
as new The ticket will remain with no owner.
The ticket will be disowned.
as The resolution will be set. Next status will be 'closed'.
The owner will be changed from (none) to anonymous. Next status will be 'assigned'.

Add Comment


E-mail address and name can be saved in the Preferences .
 
Note: See TracTickets for help on using tickets.