Unable to vote with Confluence Questions

Michaël Merkel October 6, 2018

Hi,

 

We just added Questions for Confluence plugin to our "self hosted" instance of Confluence.

Everything seems to be working fine except that we cannot use the vote feature.

Each time we try to vote we received an http 500 error from the REST API : 

https://****/rest/questions/1.0/question/26314816/vote/up

 

We checked that the option to restrict user actions based on reputation is not enabled before posting.

 

The error received is :

{"status-code":500,"stack-trace":"java.lang.NullPointerException\n\tat com.atlassian.plugins.rest.common.security.jersey.XsrfResourceFilter.mediaTypeToString(XsrfResourceFilter.java:91)\n\tat com.atlassian.plugins.rest.common.security.jersey.XsrfResourceFilter.isXsrfable(XsrfResourceFilter.java:76)\n\tat com.atlassian.plugins.rest.common.security.jersey.XsrfResourceFilter.filter(XsrfResourceFilter.java:54)\n\tat com.sun.jersey.server.impl.uri.rules.HttpMethodRule.accept(HttpMethodRule.java:277)\n\tat com.sun.jersey.server.impl.uri.rules.RightHandPathRule.accept(RightHandPathRule.java:147)\n\tat com.sun.jersey.server.impl.uri.rules.ResourceClassRule.accept(ResourceClassRule.java:108)\n\tat com.sun.jersey.server.impl.uri.rules.RightHandPathRule.accept(RightHandPathRule.java:147)\n\tat com.sun.jersey.server.impl.uri.rules.RootResourceClassesRule.accept(RootResourceClassesRule.java:84)\n\tat com.sun.jersey.server.impl.application.WebApplicationImpl._handleRequest(WebApplicationImpl.java:1469)\n\tat com.sun.jersey.server.impl.application.WebApplicationImpl._handleRequest(WebApplicationImpl.java:1400)\n\tat com.sun.jersey.server.impl.application.WebApplicationImpl.handleRequest(WebApplicationImpl.java:1349)\n\tat com.sun.jersey.server.impl.application.WebApplicationImpl.handleRequest(WebApplicationImpl.java:1339)\n\tat com.sun.jersey.spi.container.servlet.WebComponent.service(WebComponent.java:416)\n\tat com.sun.jersey.spi.container.servlet.ServletContainer.service(ServletContainer.java:537)\n\tat com.atlassian.plugins.rest.module.RestDelegatingServletFilter$JerseyOsgiServletContainer.doFilter(RestDelegatingServletFilter.java:178)\n\tat com.sun.jersey.spi.container.servlet.ServletContainer.doFilter(ServletContainer.java:795)

 

Can somebody help us please, we're stuck using the plugin without the voting feeature.

 

Thanks.

Regards.

1 answer

0 votes
Fabienne Gerhard
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
October 7, 2018

Hi @Michaël Merkel

sounds a little bit like our problem at the beginning with questions addon. 

Do you use SSO? We had the problem that our SSL certificate didn't fit together with the app we were running for SSO. Could this be your problem too?

Michaël Merkel October 8, 2018

Hi @Fabienne Gerhard,

 

Thank you for the quick reply.

What king of SSO ? Between Confluence and the Questions plugin ?

I did not find any configuration related to Questions plugin neither to define login/password or SSO parameters, nor in the global Confluence config.

 

From where did you set up these connection details/SSO between Confluence and Questions ?

 

Thank you.

 

Regards.

Fabienne Gerhard
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
October 8, 2018

Hi @Michaël Merkel

We used a SSO connector that we got from an Atlassian Partner that supports us with Confluence, JIRA aso.

I thought maybe you are having a similar problem when using SSO + SSL certificates. 

Another problem was that web.xml files for Confluence and Questions used different security constraints which were interpreted differently by different browsers

Hope this can give you a push in the right direction.

Best regards

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events