-
Type:
Bug
-
Resolution: Fixed
-
Priority:
High
-
Component/s: Integrations - Confluence Questions
-
Severity 3 - Minor
NOTE: This bug report is for Confluence Cloud. Using Confluence Server? See the corresponding bug report.
Trying to view a question from a deleted user causes NPE and stacktrace.
Steps to reproduce:
1. create user A
2. ask question as user A
3. delete user A
4. view question as admin
we should check if the same holds true for comments and answers as well.
Cause
java.lang.IllegalArgumentException: author is required
at com.atlassian.confluence.plugins.questions.model.QuestionImpl.<init>(QuestionImpl.java:51)
Stack Trace:[hide]
java.lang.IllegalArgumentException: author is required
at com.atlassian.confluence.plugins.questions.model.QuestionImpl.<init>(QuestionImpl.java:51)
at com.atlassian.confluence.plugins.questions.model.QuestionImplBuilder.build(QuestionImplBuilder.java:118)
at com.atlassian.confluence.plugins.questions.service.QuestionServiceImpl.toQuestion(QuestionServiceImpl.java:751)
at com.atlassian.confluence.plugins.questions.service.QuestionServiceImpl.isWatching(QuestionServiceImpl.java:412)
at com.atlassian.confluence.plugins.questions.actions.ViewQuestionAction.execute(ViewQuestionAction.java:42)
- is related to
-
CONFSERVER-48036 Can't view question when the author has been deleted
-
- Closed
-