it's possible to ask answer even if answers is not enabled for a project
Bug #860565 reported by
Alexander Belchenko
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Launchpad itself |
Fix Released
|
Low
|
Curtis Hovey |
Bug Description
If some project has not enabled answers then user still can ask questions clicking on Bugs tab and then use right panel links:
Report a bug
Ask a question
Clicking on Ask a question will open the corresponding form and one can enter the question. I've filed question https:/
Launchpad does not know where bzr-tiplog tracks support requests.
Related branches
lp:~sinzui/launchpad/ask-question-from-bug
- j.c.sackett (community): Approve
- Diff: 0 lines
Changed in launchpad: | |
status: | New → Triaged |
importance: | Undecided → High |
tags: | added: answers bugs ui |
tags: |
added: questions removed: answers |
Changed in launchpad: | |
importance: | High → Low |
tags: |
added: qa-ok removed: qa-needstesting |
Changed in launchpad: | |
status: | Fix Committed → Fix Released |
To post a comment you must log in.
The defect is in BugTaskSearchLi stingView. addquestion_ url which wrongly checks if there is a URL for asking a question. The object type is checked if it is a valid question target, but there is not check if the project uses Lp answers. The correct test is: url(self) : .providedBy( self.context) :
answers_ usage = IServiceUsage( self.context) .answers_ usage LAUNCHPAD: ):
return canonical_url(
self. context, rootsite='answers',
view_ name='+ addquestion' )
@property
def addquestion_
"""Return the URL for the +addquestion view for the context."""
if IQuestionTarget
if answers_usage == ServiceUsage.
else:
return None