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.<init>(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!!
Community moderators have prevented the ability to post new answers.
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.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.