Uploaded image for project: 'Confluence Server'
  1. Confluence Server
  2. CONFSERVER-48036

Can't view question when the author has been deleted

    XMLWordPrintable

    Details

      Description

      NOTE: This bug report is for Confluence Server. Using Confluence Cloud? 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)
      

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              jhoarau Julien Michel Hoarau (Inactive)
              Reporter:
              drichard David Richard
              Votes:
              1 Vote for this issue
              Watchers:
              9 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved: