"Send preview" with no adress sends to the whole channel
Bug #509577 reported by
David Jensen
This bug affects 2 people
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Singing & Dancing |
Fix Released
|
Undecided
|
Unassigned |
Bug Description
Hi,
this might already be solved but I couldn't find a bugreport nor any mention of it in the changelog.
I'm on version 0.8.11
The problem is that if you press "Send as preview" button without having specified a address it will happily send to the entire channel instead, seems a bit dangerous.
To reproduce:
#1 Select "Send as newsletter" on an article
#2 Select a channel
#3 Press "Send as preview"
Thanks
/david
Changed in singing-dancing: | |
status: | Fix Committed → Fix Released |
To post a comment you must log in.
To resolve this bug you can make a check of the address field in the code. dancing/ browser/ sendnewsletter. py, line 231 (inside the function handle_preview) you can add the checker test as follows:
self. status = 'The address to send the preview is missing.'
In file collective/
address = data['address']
if not address:
return