Gadget giving an error in Confluence

sn June 28, 2017

hi,

users of Confluence 5.10 server.

im trying to add a activity gadget to a page and when i try to insert i get this error. 

Requests to http://confluence.penske.com/rest/activity-stream/1.0/config are not allowed. See your administrator about configuring a whitelist entry for this destination (http://confluence.atlassian.com/x/KQfCDQ ).

Requests to http://confluence.penske.com/rest/activity-stream/1.0/preferences are not allowed. See your administrator about configuring a whitelist entry for this destination (http://confluence.atlassian.com/x/KQfCDQ ).

i tried adding the  http://confluence.penske.com/rest/activity-stream/1.0/config to whitelist but it dint work.

when i click on the get the URL for gadget, i get below error

(https://confluence.penske.com/rest/gadgets/1.0/g/com.atlassian.streams.confluence:activitystream-gadget/gadgets/conf-activitystream-gadget.xml)

This XML file does not appear to have any style information associated with it. The document tree is shown below.

thanks !

1 answer

1 vote
AnnWorley
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
June 28, 2017

The activity gadget works as expected on my 5.10.x test instances. You shouldn't have to whitelist the Confluence URL on the same Confluence instance. My theory is that something has gone wrong on the network (like a proxy configuration) or else the Base URL is not right as in this article: Confluence Activity Stream Gadget is broken

Please make sure the proxyName, proxyPort and scheme are inside the connector directive of your server.xml file if you have a reverse proxy in front of Confluence. Please see Proxy Support for details. The server.xml in Confluence is in the <confluence_install>/conf directory. The connector should be similar to this:

<Connector port="8090" connectionTimeout="20000" redirectPort="8443"
                maxThreads="48" minSpareThreads="10"
                enableLookups="false" acceptCount="10" debug="0" URIEncoding="UTF-8"
                protocol="org.apache.coyote.http11.Http11NioProtocol" 
                proxyName="www.example.com" proxyPort="80" scheme="http"/>

If you add proxy support to the server.xml, Confluence must be restarted to pick up the change.

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events