1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
|
= Question obfuscation =
Launchpad obfuscates email addresses when pages are viewed by
anonymous users to prevent address harvesting by spammers. Logged
in users can see the email address in Question descriptions.
See question-message.txt for additional documentation.
== Logged in users can see email addresses ==
No Privileges Person can see the email address in the tooltip of the
questions in the Latest questions solved portlet on the Answers
front page.
>>> user_browser.open('http://answers.launchpad.dev/')
>>> question_portlet = find_tag_by_id(
... user_browser.contents, 'latest-questions-solved')
>>> for li in question_portlet.findAll('li'):
... li['title']
u'I am not able to ... if i click on a mailto:user@domain.com link ...'
He can also see the email address in the tooltip for the question in the
project's questions. When he views the question, he can see the address
in the question's description.
>>> user_browser.getControl(name='field.search_text').value = 'mailto'
>>> user_browser.getControl('Find Answers').click()
>>> user_browser.title
'Questions matching "mailto"'
>>> question_listing = find_tag_by_id(
... user_browser.contents, 'question-listing')
>>> for li in question_portlet.findAll('li'):
... li['title']
u'I am not able to ... if i click on a mailto:user@domain.com link ...'
>>> user_browser.getLink('mailto: problem in webpage').click()
>>> description = find_main_content(user_browser.contents).p
>>> description.renderContents()
'I am not able to open my email client if i click on a
<a ... href="mailto:user@domain.com">mailto:...user@domain...com</a>
link ...'
No Privileges Person can see email addresses in the FAQ's
Related question's portlet.
>>> user_browser.getLink('Link to a FAQ').click()
>>> user_browser.title
'Is question #9 a FAQ...
>>> user_browser.getControl(name='field.faq-query').value = 'voip'
>>> user_browser.getControl('Search', index=0).click()
>>> user_browser.getControl('4').selected = True
>>> user_browser.getControl('Link to FAQ').click()
>>> user_browser.getLink('How can I make VOIP calls?').click()
>>> print user_browser.title
FAQ #4 : Questions : Ubuntu
>>> portlet = find_portlet(user_browser.contents, 'Related questions')
>>> portlet.a['title']
u'I am not able to open my email client if i click on a
mailto:user@domain.com link in a webpage in...'
No Privileges Person creates a question with an email address in the
description. He can then see the email address in the tooltip in the
'Latest questions asked' portlet for Answers front page.
>>> user_browser.getLink('#9 mailto: problem in webpage').click()
>>> user_browser.getLink('Ask a question').click()
>>> user_browser.title
'Ask a question about...
>>> user_browser.getControl('Summary').value = 'email address test'
>>> user_browser.getControl('Continue').click()
>>> user_browser.getControl('Description').value = (
... 'The clicking mailto:user@domain.com crashes the browser.')
>>> user_browser.getControl('Post Question').click()
>>> print user_browser.title
Question #... : ...
>>> user_browser.open('http://answers.launchpad.dev/')
>>> question_portlet = find_tag_by_id(
... user_browser.contents, 'latest-questions-asked')
>>> for li in question_portlet.findAll('li'):
... li['title']
u'The clicking mailto:user@domain.com crashes the browser.'
...
== Anonymous users cannot see email addresses ==
Anonymous cannot see the email address anywhere on the Answers front
page.
>>> anon_browser.open('http://answers.launchpad.dev/')
>>> 'user@domain.com' in anon_browser.contents
False
>>> question_portlet = find_tag_by_id(
... anon_browser.contents, 'latest-questions-solved')
>>> for li in question_portlet.findAll('li'):
... li['title']
u'I am not able to ... if i click on a
mailto:<email address hidden> ...'
>>> question_portlet = find_tag_by_id(
... anon_browser.contents, 'latest-questions-asked')
>>> for li in question_portlet.findAll('li'):
... li['title']
u'The clicking mailto:<email address hidden> crashes the browser.'
...
Nor can he see it in the question listings for the project.
He cannot see the address reading the question either.
>>> anon_browser.getControl(name='field.search_text').value = 'mailto'
>>> anon_browser.getControl('Find Answers').click()
>>> anon_browser.title
'Questions matching "mailto"'
>>> 'user@domain.com' in anon_browser.contents
False
>>> question_listing = find_tag_by_id(
... anon_browser.contents, 'question-listing')
>>> for tr in question_listing.tbody.findAll('tr'):
... tr['title']
u'I am not able to ... if i click on a mailto:<email address hidden>
link ...'
>>> anon_browser.getLink('mailto: problem in webpage').click()
>>> 'user@domain.com' in anon_browser.contents
False
>>> description = find_main_content(anon_browser.contents).p
>>> description.renderContents()
'I am not able to open my email client if i click on a
<a ...
href="mailto:<email">mailto:...<email</a> address hidden>
link ...'
Anonymous users cannot see the email addresses in the Related
questions portlet on a FAQ page.
>>> anon_browser.getLink('How can I make VOIP calls?').click()
>>> print anon_browser.title
FAQ #4 : Questions : Ubuntu
>>> portlet = find_portlet(anon_browser.contents, 'Related questions')
>>> portlet.a['title']
u'I am not able to open my email client if i click on a
mailto:<email address hidden> link in a web...'
|