java.lang.NullPointerException

Atlassian JIRA | Sorin Sbarnea (Citrix) | 2 years ago
tip
Do you know that we can give you better hits? Get more relevant results from Samebug’s stack trace search.
  1. 0

    It seems that indexing of Confluence questions triggers a huge number of errors and thread dumps due to permission checks that are failing. This is caused by the bad usage of GET urls for delete actions in the UI when Confluence is configured to be accessed as anonymous. The logs can fill quite fast due to this bug as it logs over 10kb per request. {noformat} 2015-04-13 10:14:47,581 ERROR [http-bio-8090-exec-203] [atlassian.plugin.web.DefaultWebInterfaceManager] filterFragmentsByCondition Could not evaluate condition 'co m.atlassian.confluence.plugins.questions.conditions.AnswerPermissionCondition@7fe75f60' for descriptor: cq.answer.meta/cq.answer.meta.delete -- url: /display/xenserver/questions/1226224791/answers/1226224795/comments/1226224808 | userName: anonymous | action: viewquestion | space: 130351106 java.lang.NullPointerException at com.atlassian.confluence.plugins.questions.internal.security.policy.SpacePermissionPolicy.isAuthorOfResource(SpacePermissionPolicy.java:94) at com.atlassian.confluence.plugins.questions.internal.security.policy.SpacePermissionPolicy.hasPermission(SpacePermissionPolicy.java:80) at com.atlassian.confluence.plugins.questions.internal.security.policy.SpacePermissionPolicy.hasPermissionWithMessage(SpacePermissionPolicy.java:49) at com.atlassian.confluence.plugins.questions.internal.security.PermissionServiceImpl.hasPermissionWithMessage(PermissionServiceImpl.java:94) {noformat}

    Atlassian JIRA | 2 years ago | Sorin Sbarnea (Citrix)
    java.lang.NullPointerException
  2. 0

    It seems that indexing of Confluence questions triggers a huge number of errors and thread dumps due to permission checks that are failing. This is caused by the bad usage of GET urls for delete actions in the UI when Confluence is configured to be accessed as anonymous. The logs can fill quite fast due to this bug as it logs over 10kb per request. {noformat} 2015-04-13 10:14:47,581 ERROR [http-bio-8090-exec-203] [atlassian.plugin.web.DefaultWebInterfaceManager] filterFragmentsByCondition Could not evaluate condition 'co m.atlassian.confluence.plugins.questions.conditions.AnswerPermissionCondition@7fe75f60' for descriptor: cq.answer.meta/cq.answer.meta.delete -- url: /display/xenserver/questions/1226224791/answers/1226224795/comments/1226224808 | userName: anonymous | action: viewquestion | space: 130351106 java.lang.NullPointerException at com.atlassian.confluence.plugins.questions.internal.security.policy.SpacePermissionPolicy.isAuthorOfResource(SpacePermissionPolicy.java:94) at com.atlassian.confluence.plugins.questions.internal.security.policy.SpacePermissionPolicy.hasPermission(SpacePermissionPolicy.java:80) at com.atlassian.confluence.plugins.questions.internal.security.policy.SpacePermissionPolicy.hasPermissionWithMessage(SpacePermissionPolicy.java:49) at com.atlassian.confluence.plugins.questions.internal.security.PermissionServiceImpl.hasPermissionWithMessage(PermissionServiceImpl.java:94) {noformat}

    Atlassian JIRA | 2 years ago | Sorin Sbarnea (Citrix)
    java.lang.NullPointerException

    Root Cause Analysis

    1. java.lang.NullPointerException

      No message provided

      at com.atlassian.confluence.plugins.questions.internal.security.policy.SpacePermissionPolicy.isAuthorOfResource()
    2. com.atlassian.confluence
      PermissionServiceImpl.hasPermissionWithMessage
      1. com.atlassian.confluence.plugins.questions.internal.security.policy.SpacePermissionPolicy.isAuthorOfResource(SpacePermissionPolicy.java:94)
      2. com.atlassian.confluence.plugins.questions.internal.security.policy.SpacePermissionPolicy.hasPermission(SpacePermissionPolicy.java:80)
      3. com.atlassian.confluence.plugins.questions.internal.security.policy.SpacePermissionPolicy.hasPermissionWithMessage(SpacePermissionPolicy.java:49)
      4. com.atlassian.confluence.plugins.questions.internal.security.PermissionServiceImpl.hasPermissionWithMessage(PermissionServiceImpl.java:94)
      4 frames