| 1 | <html> |
| 2 | <head> |
| 3 | <title>Update checking in FindBugs</title> |
| 4 | <link rel="stylesheet" type="text/css" href="findbugs.css" /> |
| 5 | @GOOGLE_ANALYTICS@ |
| 6 | </head> |
| 7 | |
| 8 | <body> |
| 9 | |
| 10 | <table width="100%"> |
| 11 | <tr> |
| 12 | |
| 13 | @HTML_SIDEBAR@ |
| 14 | |
| 15 | <td align="left" valign="top"> |
| 16 | |
| 17 | <h1>Update checking in FindBugs</h1> |
| 18 | |
| 19 | <p>When FindBugs is run, it now checks for updated versions of FindBugs or plugins. As a side effect |
| 20 | of this, our server sees a request for whether there are any updated version of FindBugs available. |
| 21 | Third party plugins can independently receive this same information. We are recording |
| 22 | information about the operating system, Java version, locale, and Findbugs entry point (ant, command line, |
| 23 | GUI, etc), in order to better understand our users. |
| 24 | |
| 25 | <p>For example, here is an example of the information that would be sent to the server: |
| 26 | <pre> |
| 27 | <?xml version="1.0" encoding="UTF-8"?> |
| 28 | |
| 29 | <findbugs-invocation version="2.0.0-rc1" app-name="UpdateChecker" app-version="" entry-point="UpdateChecker" os="Mac OS X" |
| 30 | java-version="1.6" language="en" country="US" uuid="-4bcf8f48ba2842d2"> |
| 31 | <plugin id="edu.umd.cs.findbugs.plugins.core" name="Core FindBugs plugin" version="2.0.0-rc1"/> |
| 32 | <plugin id="edu.umd.cs.findbugs.plugins.appengine" name="FindBugs Cloud Plugin" version=""/> |
| 33 | <plugin id="edu.umd.cs.findbugs.plugins.poweruser" name="Power user commnand line tools" version=""/> |
| 34 | </findbugs-invocation> |
| 35 | </pre> |
| 36 | |
| 37 | <p>You can run the main method of edu.umd.cs.findbugs.updates.UpdateChecker to see what would be reported |
| 38 | for you, and whether update checking is disabled and/or redirected (e.g., run |
| 39 | <pre> java -classpath ~/findbugs/lib/findbugs.jar edu.umd.cs.findbugs.updates.UpdateChecker</pre> |
| 40 | |
| 41 | <p>There is one element of the information sent that needs explanation: the uuid. Since we don't report anything like username, |
| 42 | when we receive a bunch of update checks from a particular ip address, we don't know if that is one person running FindBugs many times |
| 43 | on a single machine, or many users running FindBugs on many different machines So we generate a random 64 bit integer, |
| 44 | store it in the Java user preferences, and report that on each use. |
| 45 | |
| 46 | <h2>Disabling or redirecting update checks</h2> |
| 47 | <p>Some organizations or individuals may have policies or preferences to not let us know any information about |
| 48 | their running of FindBugs. Note that we do not collect any information about the code being analuzed. |
| 49 | Even so, we understand that is very important for a few of our users, |
| 50 | and provide several ways for you to disable or redirect FindBugs update checks. |
| 51 | <ul> |
| 52 | <li>There is a FindBugs plugin, noUpdateChecks.jar, which is in findbugs/optionalPlugin in the standard distribution. |
| 53 | If this plugin enabled, all update checks are disabled. You can move that plugin from findbugs/optionalPlugin to findbugs/plugin, |
| 54 | to disable it for all users of that distribution. You can also copy it to <pre>~/.findbugs/plugin</pre>, |
| 55 | which will disable it for your account for any distribution of FindBugs you invoke (NOTE: double check location |
| 56 | of personal FindBugs plugin installation for Windows User). |
| 57 | <li>There are noUpdateChecks distributions of FindBugs available from SourceForge. This come with the noUpdateChecks plugin |
| 58 | already moved to findbugs/plugin, and the webCloudClient.jar plug in the optional plugin directory (where it is disabled by default). |
| 59 | |
| 60 | <li>You can also redirect all update checks to a local server. This allows you to collect information about who is using |
| 61 | what versions of FindBugs in your organization, and keep all of that information private. |
| 62 | <li>All of the plugins from the FindBugs project use <pre>http://update.findbugs.org/update-check</pre> as the |
| 63 | host we use for update checks. If you wish to ensure that no one from your organization accidentally reports any usage |
| 64 | information to the FindBugs project, you can blacklist that URL in your firewall |
| 65 | <ul> |
| 66 | <li>You can also block <pre>http://findbugs-cloud.appspot.com</pre>, the host we use for our publicly hosted |
| 67 | repository of bug evaluations (e.g., evaluations in open source projects such as the JDK, Eclipse and GlassFish). |
| 68 | While people have to explicitly request that their evaluations be stored into the FindBugs cloud, you |
| 69 | can block it to ensure that no one accidentally shares evaluations of your own code to the FindBugs cloud. You can also |
| 70 | remove the WebCloudClient |
| 71 | |
| 72 | </ul> |
| 73 | </li> |
| 74 | </ul> |
| 75 | |
| 76 | |
| 77 | </tr> |
| 78 | </table> |
| 79 | |
| 80 | </body> |
| 81 | </html> |