Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

Bamboo XML Gadgets using internal IP, not base URL

Jim Edwards
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
August 22, 2019

I have bamboo sitting behind an HTTPS proxy.  I have attempted to add Widgets to JIRA and Confluence, which are hosted in the bamboo instance.  They import correctly, but the XML file generated by Bamboo contains the internal IP address of the server instead of the Base URL it should be using.  The Base URL is setup and working properly normally.  But the XML returned below contains oauth links that use the internal IP.  When added as a widget to JIRA, which loads into remote browsers, the widgets don't work unless the user has access to the internal IP.

https://reverseproxy.url.com/rest/gadgets/1.0/g/com.atlassian.bamboo.gadgets/charts/bambooCharts.xml

Returns something like the following:

Returns something like:
<Module>
<ModulePrefs title="Bamboo Charts" title_url="http://192.168.122.165:8085" description="Charts and statistics of plans from http://192.168.122.165:8085" author="Atlassian" author_affiliation="Atlassian" screenshot="https://reverseproxy.url.com/s/en_US/60911/1/6.9.2/_/download/resources/com.atlassian.bamboo.gadgets:gadgets.charts/charts.png" thumbnail="https://reverseproxy.url.com/s/en_US/60911/1/6.9.2/_/download/resources/com.atlassian.bamboo.gadgets:gadgets.charts/chartsThumb.png" height="100" directory_title="Bamboo Charts">
<Optional feature="gadget-directory">
<Param name="categories">Bamboo</Param>
</Optional>
<Optional feature="auth-refresh"/>
<Require feature="setprefs"/>
<Require feature="settitle"/>
<Require feature="views"/>
<Require feature="dynamic-height"/>
<Require feature="oauthpopup"/>
<Require feature="atlassian.util"/>
<OAuth>
<Service>
<Access url="http://192.168.122.165:8085/plugins/servlet/oauth/access-token" method="POST"/>
<Request url="http://192.168.122.165:8085/plugins/servlet/oauth/request-token" method="POST"/>
<Authorization url="http://192.168.122.165:8085/plugins/servlet/oauth/authorize?oauth_callback=http%3A%2F%2Foauth.gmodules.com%2Fgadgets%2Foauthcallback"/>
</Service>
</OAuth>
<Locale messages="http://192.168.122.165:8085/rest/gadgets/1.0/g/messagebundle/und/gadget.common%2Cgadget.charts%2Cgadget.config"/>
<Locale lang="en" country="US" messages="http://192.168.122.165:8085/rest/gadgets/1.0/g/messagebundle/en_US/gadget.common%2Cgadget.charts%2Cgadget.config"/>
</ModulePrefs>
<UserPref name="reportType" datatype="hidden" default_value=""/>
<UserPref name="planKeys" datatype="hidden" default_value=""/>
<UserPref name="useFavourites" datatype="hidden" default_value="true"/>
<UserPref name="groupByPeriod" datatype="hidden" default_value="AUTO"/>
<UserPref name="dateFilter" datatype="hidden" default_value="ALL"/>
<UserPref name="isConfigured" datatype="hidden" default_value="false"/>
....

 

1 answer

0 votes
Stephen Sifers
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
August 27, 2019

Hello Jim,

Thanks for reaching out to Community for this issue and providing details into what you’re seeing when you’re adding gadgets within other applications. As you said, you’ve checked the base URL and that looks to be fine. I would be interested to also check the application links between the applications to ensure they’re using proper DNS entries instead of IP addresses within their URLs. Could you please check your application links to ensure the URLs are correct and using a DNS entry? You may need to drop and re-create the application links if a change is required. Further information on this may be found at Application Links Documentation.

We look forward to hearing back to help figure out why your gadgets are using IP addresses within the URLs.

Regards,
Stephen Sifers

Jim Edwards
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
August 27, 2019

Application links are all using the externally available DNS entries as well, they all show connected OK and the links appear to be working.  I also checked to make sure the "User directory" was also using the DNS, it is.  Checked since some of the URLs appear to be related to OAuth.

 

The main page under Configuration -> Available Gadgets, where it is listed the Gadget URLs show the correct DNS name there.  But you click on the link and the XML generated is using the internal IP address.

Suggest an answer

Log in or Sign up to answer