Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

Atlas-SDK - allowGoogleTracking false but still try to connect

Séb P.
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
August 9, 2012

Hi,

I'm developing plugins for Jira using the sdk v3.11. I'm behind a firewall, and can't connect to many sites outside my network. So I try to disable the annoying Google Analytics connection occuring each time I do something in the sdk...

My plugin description in my project's pom.xml

<plugin>
<groupId>com.atlassian.maven.plugins</groupId>
<artifactId>maven-amps-plugin</artifactId>
<version>3.11</version>
<configuration>
<allowGoogleTracking>false</allowGoogleTracking>
</configuration>
</plugin>

But I still see the following stacktrace:

8906 [AnalyticsThread-1] ERROR com.dmurph.tracking.JGoogleAnalyticsTracker - Error making tracking request
java.net.UnknownHostException: www.google-analytics.com
	at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:195)
	at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
	at java.net.Socket.connect(Socket.java:529)
	at java.net.Socket.connect(Socket.java:478)
	at sun.net.NetworkClient.doConnect(NetworkClient.java:163)
	at sun.net.www.http.HttpClient.openServer(HttpClient.java:395)
	at sun.net.www.http.HttpClient.openServer(HttpClient.java:530)
	at sun.net.www.http.HttpClient.&lt;init&gt;(HttpClient.java:234)
	at sun.net.www.http.HttpClient.New(HttpClient.java:307)
	at sun.net.www.http.HttpClient.New(HttpClient.java:324)
	at sun.net.www.protocol.http.HttpURLConnection.getNewHttpClient(HttpURLConnection.java:970)
	at sun.net.www.protocol.http.HttpURLConnection.plainConnect(HttpURLConnection.java:949)
	at sun.net.www.protocol.http.HttpURLConnection.connect(HttpURLConnection.java:836)
	at com.dmurph.tracking.JGoogleAnalyticsTracker.dispatchRequest(JGoogleAnalyticsTracker.java:463)
	at com.dmurph.tracking.JGoogleAnalyticsTracker.access$100(JGoogleAnalyticsTracker.java:76)
	at com.dmurph.tracking.JGoogleAnalyticsTracker$1.run(JGoogleAnalyticsTracker.java:431)

What's wrong??

Thanks!!

2 answers

Comments for this post are closed

Community moderators have prevented the ability to post new answers.

Post a new question

0 votes
Norman Abramovitz
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
August 11, 2012

It is more than annoying but a major security risk since the opt out ability is not made clearly available and your network is sending out information to the external world not under network owner control.

I suspect this occurs even without your plugin. See if you Atlassian Labs is enabled or Greenhopper labs is enabled.

See this answer for potential places to look.

https://answers.atlassian.com/questions/28784/jira-hammers-our-external-web-proxy-with-google-analytics

Norman Abramovitz
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
August 11, 2012
0 votes
David at David Simpson Apps
Marketplace Partner
Marketplace Partners provide apps and integrations available on the Atlassian Marketplace that extend the power of Atlassian products.
August 11, 2012

I honestly wouldn't worry about this.

If you can't access www.google-analytics.com, then it wont track the event -- just ignore the error.

If you really want to get rid of that error, you could always setup a web server locally that gives a 200 for every request and add the following to your /etc/hosts file:

127.0.0.1 ssl.google-analytics.com www.google-analytics.com

TAGS
AUG Leaders

Atlassian Community Events